|
@@ -171,6 +171,9 @@ import service_code from './image/service_code.png'
|
|
|
import {changeShopStatus, getShopConfig, statisticsDishTop10} from '@/api/shop'
|
|
import {changeShopStatus, getShopConfig, statisticsDishTop10} from '@/api/shop'
|
|
|
import cache from "@/utils/cache";
|
|
import cache from "@/utils/cache";
|
|
|
import {ACCOUNT_KEY, SHOP_ID} from "@/enums/cacheEnums";
|
|
import {ACCOUNT_KEY, SHOP_ID} from "@/enums/cacheEnums";
|
|
|
|
|
+import useAppStore from "@/stores/modules/app";
|
|
|
|
|
+const appStore = useAppStore()
|
|
|
|
|
+const config = computed(() => appStore.config)
|
|
|
|
|
|
|
|
const activeIndex = ref(0)
|
|
const activeIndex = ref(0)
|
|
|
// 表单数据
|
|
// 表单数据
|
|
@@ -435,6 +438,10 @@ const shopInfo = () => {
|
|
|
workbenchData.shopName = res.name
|
|
workbenchData.shopName = res.name
|
|
|
workbenchData.shopStatus = res.status
|
|
workbenchData.shopStatus = res.status
|
|
|
cache.set(SHOP_ID, res.id)
|
|
cache.set(SHOP_ID, res.id)
|
|
|
|
|
+ config.value.webName = res.name
|
|
|
|
|
+ if(res.image){
|
|
|
|
|
+ config.value.webLogo = res.image
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
const changeStatus = () => {
|
|
const changeStatus = () => {
|