Browse Source

no message

linwenxin 5 months ago
parent
commit
4f47ea3b7b
6 changed files with 16 additions and 37 deletions
  1. 3 10
      .env.development
  2. 9 4
      .env.production
  3. 2 12
      .env.staging
  4. 0 9
      src/layout/components/Navbar.vue
  5. 1 1
      src/views/setting/account/index.vue
  6. 1 1
      vue.config.js

+ 3 - 10
.env.development

@@ -1,13 +1,6 @@
-# just a flag
+NODE_ENV = development
 ENV = 'development'
-#base
-VUE_APP_BASE = 'https://jiasm.zfire.top'
-# base api
-
 VUE_APP_BASE_OSS = 'https://jiasm.zfire.top/zfdapi/img/get?key='
-
 VUE_APP_BASE_API = 'https://jiasm.zfire.top/zfdapi/'
-
-# appid agentid
-VUE_APP_PUBLIC_APPID = 'ww62ea04d5c904dc4a'
-VUE_APP_PUBLIC_AGENTID = '1000018'
+VUE_APP_ONLINE_FILE = 'https://pgxtadm.greeapps.com/preview/onlinePreview?url='
+VUE_APP_PATH_ALIAS = '/'

+ 9 - 4
.env.production

@@ -1,6 +1,11 @@
 NODE_ENV = production
 ENV = 'production'
-VUE_APP_ENV = 'production'
-VUE_APP_BASE = 'https://sxb.zfire.top'
-VUE_APP_BASE_OSS = 'https://zf-mall.oss-cn-shenzhen.aliyuncs.com/'
-VUE_APP_BASE_API = 'https://sxb.zfire.top/zfapi/'
+# 文件访问
+VUE_APP_BASE_OSS = 'https://fw.greeapps.com/zfdapi/img/get?key='
+# 接口地址
+VUE_APP_BASE_API = 'https://fw.greeapps.com/zfapi/'
+# 文件在线打开
+VUE_APP_ONLINE_FILE = 'https://pgxtadm.greeapps.com/preview/onlinePreview?url='
+# 页面访问路径别名
+VUE_APP_PATH_ALIAS = '/jsm-manager'
+

+ 2 - 12
.env.staging

@@ -1,16 +1,6 @@
 NODE_ENV = staging
-
-# just a flag
 ENV = 'staging'
-
-#base
-VUE_APP_BASE = 'https://jiasm.zfire.top'
-
 VUE_APP_BASE_OSS = 'https://jiasm.zfire.top/zfdapi/img/get?key='
-
-# base api
 VUE_APP_BASE_API = 'https://jiasm.zfire.top/zfdapi/'
-
-# appid agentid
-VUE_APP_PUBLIC_APPID = 'ww62ea04d5c904dc4a'
-VUE_APP_PUBLIC_AGENTID = '1000018'
+VUE_APP_ONLINE_FILE = 'https://pgxtadm.greeapps.com/preview/onlinePreview?url='
+VUE_APP_PATH_ALIAS = '/jsm-manager'

+ 0 - 9
src/layout/components/Navbar.vue

@@ -430,15 +430,6 @@ export default {
         name: 'bigViews'
       })
     },
-    handlePage() {
-      let link = null
-      if (process.env.VUE_APP_ENV === 'production') {
-        link = 'https://fw.gd-jxm.com/#/home'
-      } else {
-        link = 'https://jiasm.zfire.top/center/#/home'
-      }
-      window.open(link)
-    },
     querySearchAsync(queryString, cb) {
       var data = pages.filter(
         item =>

+ 1 - 1
src/views/setting/account/index.vue

@@ -692,7 +692,7 @@ export default {
         .then(() => {
           setTimeout(() => {
             loading.close()
-            window.location.href = process.env.NODE_ENV === 'staging' ? '/jsm-manager' : '/'
+            window.location.href = process.env.VUE_APP_PATH_ALIAS
           }, 1000)
         })
         .catch(() => {})

+ 1 - 1
vue.config.js

@@ -42,7 +42,7 @@ module.exports = {
    * In most cases please use '/' !!!
    * Detail: https://cli.vuejs.org/config/#publicpath
    */
-  publicPath: process.env.NODE_ENV === 'staging' ? '/jsm-manager' : '/',
+  publicPath: process.env.VUE_APP_PATH_ALIAS,
   outputDir: 'dist',
   assetsDir: './static',
   // lintOnSave: process.env.NODE_ENV === 'development',