feat: 清除缓存页面

This commit is contained in:
zhangyh
2025-10-28 15:17:47 +08:00
parent baff697b4f
commit 0438cf95b9
6 changed files with 44 additions and 33 deletions

View File

@@ -45,9 +45,9 @@
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { useGenerateStore } from '@/stores'
import { useGenerateStore,useUserInfoStore } from '@/stores'
import { showToast } from 'vant'
import { customerCheckin } from '@/api/workshop'
@@ -81,7 +81,8 @@ const handleConfirm = async () => {
console.log('customerData.value', customerData.value)
customerCheckin(customerData.value).then((res) => {
console.log('res', res)
useUserInfoStore().resetGenerateParams()
// console.log('res', res)
generateStore.setCustomerInfo(res)
router.push('/stylist/index')
})