feat: 清除缓存页面
This commit is contained in:
@@ -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')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user