浏览代码

代码优化

yuwenjun 3 年之前
父节点
当前提交
31c77cdcf9
共有 3 个文件被更改,包括 6 次插入13 次删除
  1. 4 1
      .env.production
  2. 2 0
      src/router/index.js
  3. 0 12
      src/views/redirect/index.vue

+ 4 - 1
.env.production

@@ -8,4 +8,7 @@ VUE_APP_BASE_API = 'https://zplma.caimei365.com'
 VUE_APP_UPLOAD_API='https://zplma.caimei365.com'
 
 #二维码生成链接location
-VUE_APP_BASE_SERVER = 'https://www.caimei365.com'
+VUE_APP_BASE_SERVER = 'https://www.caimei365.com'
+
+# 消息接口地址 WebSocket
+VUE_APP_SOCKET_SERVER = 'wss://zplma.caimei365.com/websocket?sessionSource=zplm_admin'

+ 2 - 0
src/router/index.js

@@ -29,6 +29,7 @@ import Layout from '@/layout'
  */
 
 /**
+ * 默认路由 全部用户都可以访问
  * constantRoutes
  * a base page that does not have permission requirements
  * all roles can be accessed
@@ -92,6 +93,7 @@ export const constantRoutes = [
 ]
 
 /**
+ * 需要权限访问的路由
  * asyncRoutes
  * the routes that need to be dynamically loaded based on user roles
  */

+ 0 - 12
src/views/redirect/index.vue

@@ -1,12 +0,0 @@
-<script>
-export default {
-  created() {
-    const { params, query } = this.$route
-    const { path } = params
-    this.$router.replace({ path: '/' + path, query })
-  },
-  render: function(h) {
-    return h() // avoid warning message
-  }
-}
-</script>