增加代客下单页面

This commit is contained in:
2025-02-21 14:42:38 +08:00
parent e08a2eb4b7
commit f961bf7d92
24 changed files with 2780 additions and 199 deletions

View File

@@ -23,7 +23,7 @@ export const useUserStore = defineStore("user", () => {
return new Promise<void>((resolve, reject) => {
AuthAPI.login(loginRequest)
.then((data) => {
Object.assign(userInfo.value, { ...data.shopInfo });
Object.assign(userInfo.value, { ...data.shopInfo, shopId: data.shopInfo.id });
promissionList.value = data.promissionList;
const token = data.tokenInfo.tokenValue;
setToken(token); // Bearer eyJhbGciOiJIUzI1NiJ9.xxx.xxx