libushang hai 6 meses
pai
achega
b8a252d84d
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 3 0
      .env.production
  2. 2 1
      src/views/index.vue

+ 3 - 0
.env.production

@@ -1,6 +1,9 @@
 # 页面标题
 VITE_APP_TITLE = 应急工作台移动端
 
+# 开发环境配置
+VITE_APP_ENV = 'production'
+
 # baseUrl
 # VITE_BASE_API = "http://19.155.220.206:8088"
 VITE_BASE_API = ""

+ 2 - 1
src/views/index.vue

@@ -30,7 +30,8 @@ const handleJump = (path: string, role: string) => {
 
 onMounted(() => {
   console.log('env:', env);
-  if(env === 'development') {
+  // if(env === 'development') 
+  {
     localStorage.setItem('Admin-Token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIiwiZXhwIjoyMDM5Njk2ODMzfQ.Rhd38oo_S1odjg0xnT4n31cCWCAAPXGb8y_V2XcgqzQ');
   }
   getInfo().then((res)=>{