helpful to us.
diff --git a/src/stores/modules/generate.ts b/src/stores/modules/generate.ts index 19bb34b..6b50236 100644 --- a/src/stores/modules/generate.ts +++ b/src/stores/modules/generate.ts @@ -156,6 +156,11 @@ export const useGenerateStore = defineStore({ for (const key in data) { this.customizeInfo[key] = data[key] } + }, + uploadCustomizeInfoDemo(data: object) { + for (const key in data) { + this.customizeInfoDemo[key] = data[key] + } }, clearCustomerInfo() { this.customerInfo = { diff --git a/src/stores/modules/overall.ts b/src/stores/modules/overall.ts index 7689f34..95e5635 100644 --- a/src/stores/modules/overall.ts +++ b/src/stores/modules/overall.ts @@ -14,6 +14,6 @@ export const useOverallStore = defineStore({ // 全局loading setLoading(data:boolean){ this.loading = data - } + }, } }) diff --git a/src/views/Workshop/home.vue b/src/views/Workshop/home.vue index d96a2c1..d16c8da 100644 --- a/src/views/Workshop/home.vue +++ b/src/views/Workshop/home.vue @@ -26,10 +26,18 @@ const clickSwitchVIPID = ()=>{ .then(() => { MyEvent.emit('clear-generate-state') MyEvent.emit('clearAllCache') - router.push('/stylist/customer') + router.push({ name: 'customer', query: { demo: 1 } }) }) .catch(() => {}) } +const openFlow = (path:string,flowType:string)=>{ + if(flowType == 'clientId')return clickSwitchVIPID() + if(flowType == 'main'){ + router.push({ name: path }) + }else{ + router.push({ name: path, query: { demo: 1 } }) + } +} onMounted(()=>{ emit('view-type', 1) @@ -51,16 +59,16 @@ defineExpose({}) Explore