YunaiV
2025-04-27 21:42:39 +08:00
parent 796f3e9eba
commit b532985e84
3 changed files with 12 additions and 2 deletions
+5 -1
View File
@@ -7,7 +7,11 @@ if (process.env.NODE_ENV === 'development') {
baseUrl = import.meta.env.SHOPRO_BASE_URL;
}
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 staticUrl = import.meta.env.SHOPRO_STATIC_URL;