sync:修改空置页提示 f470af9d4d
				
					
				
			
							parent
							
								
									796f3e9eba
								
							
						
					
					
						commit
						b532985e84
					
				|  | @ -13,7 +13,7 @@ | ||||||
|     <s-empty |     <s-empty | ||||||
|       v-else-if="errCode === 'TemplateError'" |       v-else-if="errCode === 'TemplateError'" | ||||||
|       icon="/static/internet-empty.png" |       icon="/static/internet-empty.png" | ||||||
|       text="未找到模板" |       text="未找到模板,请前往后台启用对应模板" | ||||||
|       showAction |       showAction | ||||||
|       actionText="重新加载" |       actionText="重新加载" | ||||||
|       @clickAction="onReconnect" |       @clickAction="onReconnect" | ||||||
|  |  | ||||||
|  | @ -7,7 +7,11 @@ if (process.env.NODE_ENV === 'development') { | ||||||
|   baseUrl = import.meta.env.SHOPRO_BASE_URL; |   baseUrl = import.meta.env.SHOPRO_BASE_URL; | ||||||
| } | } | ||||||
| version = import.meta.env.SHOPRO_VERSION; | version = import.meta.env.SHOPRO_VERSION; | ||||||
| console.log(`[芋道商城 ${version}]  http://doc.iocoder.cn`); | if (typeof baseUrl === 'undefined') { | ||||||
|  |   console.error('请检查.env配置文件是否存在'); | ||||||
|  | } else { | ||||||
|  |   console.log(`[芋道商城 ${version}]  https://doc.iocoder.cn`); | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| export const apiPath = import.meta.env.SHOPRO_API_PATH; | export const apiPath = import.meta.env.SHOPRO_API_PATH; | ||||||
| export const staticUrl = import.meta.env.SHOPRO_STATIC_URL; | export const staticUrl = import.meta.env.SHOPRO_STATIC_URL; | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ import $platform from '@/sheep/platform'; | ||||||
| import $router from '@/sheep/router'; | import $router from '@/sheep/router'; | ||||||
| import user from './user'; | import user from './user'; | ||||||
| import sys from './sys'; | import sys from './sys'; | ||||||
|  | import { baseUrl } from '@/sheep/config'; | ||||||
| 
 | 
 | ||||||
| const app = defineStore({ | const app = defineStore({ | ||||||
|   id: 'app', |   id: 'app', | ||||||
|  | @ -54,6 +55,11 @@ const app = defineStore({ | ||||||
|         $router.error('NetworkError'); |         $router.error('NetworkError'); | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|  |       // 检查配置
 | ||||||
|  |       if (typeof baseUrl === 'undefined') { | ||||||
|  |         $router.error('EnvError'); | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|       // 加载装修配置
 |       // 加载装修配置
 | ||||||
|       await adaptTemplate(this.template, templateId); |       await adaptTemplate(this.template, templateId); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 YunaiV
						YunaiV