feat(首页): 添加试衣间页面并更新相关配置
- 新增试衣间页面组件,支持店铺装修和轮播图功能- 更新 .env 文件,修改开发环境基础 URL - 调整 app.js 中的初始化逻辑,
This commit is contained in:
+6
-6
@@ -63,10 +63,10 @@ const app = defineStore({
|
||||
}
|
||||
|
||||
// 加载租户
|
||||
await adaptTenant();
|
||||
// await adaptTenant();
|
||||
|
||||
// 加载装修配置
|
||||
await adaptTemplate(this.template, templateId);
|
||||
// await adaptTemplate(this.template, templateId);
|
||||
|
||||
// TODO 芋艿:【初始化优化】未来支持管理后台可配;对应 https://api.shopro.sheepjs.com/shop/api/init
|
||||
if (true) {
|
||||
@@ -104,10 +104,10 @@ const app = defineStore({
|
||||
sysStore.setTheme();
|
||||
|
||||
// 模拟用户登录
|
||||
const userStore = user();
|
||||
if (userStore.isLogin) {
|
||||
userStore.loginAfter();
|
||||
}
|
||||
// const userStore = user();
|
||||
// if (userStore.isLogin) {
|
||||
// userStore.loginAfter();
|
||||
// }
|
||||
return Promise.resolve(true);
|
||||
} else {
|
||||
$router.error('InitError', res.msg || '加载失败');
|
||||
|
||||
Reference in New Issue
Block a user