mooho-base-admin-plus 0.1.47 → 0.1.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env CHANGED
@@ -1 +1,4 @@
1
1
  # 所有环境默认
2
+
3
+ # 根路径
4
+ VITE_APP_BASE_PATH=
@@ -4057,8 +4057,6 @@ var api = init$4(defaultConverter, { path: '/' });
4057
4057
  * Admin Plus 业务配置
4058
4058
  * */
4059
4059
 
4060
- const basePath = "import.meta.env.VITE_APP_BASE_PATH";
4061
-
4062
4060
  const Setting = {
4063
4061
  /**
4064
4062
  * 基础配置
@@ -4068,7 +4066,7 @@ const Setting = {
4068
4066
  // 项目的 ID
4069
4067
  appID: 'app',
4070
4068
  // 根目录
4071
- rootPath: '/' + basePath + '/static/',
4069
+ rootPath: '/static/' ,
4072
4070
  // 网页标题的后缀,不需要设置为 false 或空
4073
4071
  titleSuffix: 'Admin Plus',
4074
4072
  // 路由模式,可选值为 history 或 hash
@@ -32587,11 +32585,14 @@ function PermissionDeep(per, perArry) {
32587
32585
  return per;
32588
32586
  }
32589
32587
 
32590
- console.log('{"VITE_APP_BASE_PATH":"import.meta.env.VITE_APP_BASE_PATH","BASE_URL":"/import.meta.env.VITE_APP_BASE_PATH/","MODE":"production","DEV":false,"PROD":true}', {"VITE_APP_BASE_PATH":"import.meta.env.VITE_APP_BASE_PATH","BASE_URL":"/import.meta.env.VITE_APP_BASE_PATH/","MODE":"production","DEV":false,"PROD":true}, "/import.meta.env.VITE_APP_BASE_PATH/");
32588
+ console.log('{"VITE_APP_BASE_PATH":"","BASE_URL":"/","MODE":"production","DEV":false,"PROD":true}', {"VITE_APP_BASE_PATH":"","BASE_URL":"/","MODE":"production","DEV":false,"PROD":true}, "/");
32591
32589
  console.log('window.$env', window.$env);
32592
32590
 
32593
32591
  // 根目录
32594
- let base$1 = "import.meta.env.VITE_APP_BASE_PATH";
32592
+ let base$1 = "";
32593
+ if (!base$1) {
32594
+ base$1 = '';
32595
+ }
32595
32596
 
32596
32597
  console.log('base', base$1);
32597
32598