sync:修改空置页提示 https://gitee.com/sheepjs/shopro-uniapp/commit/f470af9d4ddb078069a2dc682cdcddb71f566339
This commit is contained in:
@@ -4,6 +4,7 @@ import $platform from '@/sheep/platform';
|
||||
import $router from '@/sheep/router';
|
||||
import user from './user';
|
||||
import sys from './sys';
|
||||
import { baseUrl } from '@/sheep/config';
|
||||
|
||||
const app = defineStore({
|
||||
id: 'app',
|
||||
@@ -54,6 +55,11 @@ const app = defineStore({
|
||||
$router.error('NetworkError');
|
||||
}
|
||||
|
||||
// 检查配置
|
||||
if (typeof baseUrl === 'undefined') {
|
||||
$router.error('EnvError');
|
||||
}
|
||||
|
||||
// 加载装修配置
|
||||
await adaptTemplate(this.template, templateId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user