Jelajahi Sumber

feat:更新日本

jinx 3 tahun lalu
induk
melakukan
4fbf678a00
2 mengubah file dengan 23 tambahan dan 21 penghapusan
  1. 20 18
      src/page/layout/slide.vue
  2. 3 3
      src/page/login/index.vue

+ 20 - 18
src/page/layout/slide.vue

@@ -36,14 +36,17 @@ export default {
 
   data () {
     let navs = [
-      { text: '首页', link: {name: 'Home'}, top: 14 },
-      { text: '订单管理', link: {name: 'Order'}, 
+      // { text: '首页', link: {name: 'Home'}, top: 14 },
+      { text: '设备管理', link: {name: 'device'}, top: 126 },
+
+      { text: '订单管理',
+        link: {name: 'Order'},
         children: [
           { text: '相机订单', link: {name: 'Order'} },
           { text: '权益订单', link: {name: 'qyOrder'} },
           { text: '下载订单', link: {name: 'downloadOrder'} }
         ],
-      top: 42 },
+        top: 42 },
       // { text: '增值服务', link: {name: 'Added'}, top: 70 },
       // {
       //   text: '代理平台',
@@ -55,8 +58,7 @@ export default {
       //   ],
       //   top: 98
       // },
-      { text: '设备管理', link: {name: 'device'}, top: 126 },
-      { text: '发票管理', link: {name: 'invoice'}, top: 126 },
+      // { text: '发票管理', link: {name: 'invoice'}, top: 126 },
       {
         text: '更多设置',
         link: {name: 'home'},
@@ -70,8 +72,8 @@ export default {
         ],
         top: 154
       },
-      { text: '经销商申请', link: {name: 'distributor-list'}, top: 98 },
-      { text: '留言管理', link: {name: 'leaving'}, top: 182 },
+      // { text: '经销商申请', link: {name: 'distributor-list'}, top: 98 },
+      // { text: '留言管理', link: {name: 'leaving'}, top: 182 },
       {
         text: '版本管理',
         link: {name: 'edition'},
@@ -83,17 +85,17 @@ export default {
         top: 154
       },
       // { text: '版本管理', link: {name: 'edition'}, top: 182 },
-      { text: '数据统计', link: {name: 'Statistics'}, top: 210 },
-      {
-        text: 'SDK 发布管理',
-        link: {name: 'sdkManage'},
-        children: [
-          { text: 'SpaceTarget', link: {name: 'spaceTarget'}, top: 182 }
-        ],
-        top: 154
-      },
-      { text: '用户列表', link: {name: 'userList'}, top: 126 },
-      { text: '操作日志', link: {name: 'oplog'}, top: 210 }
+      { text: '数据统计', link: {name: 'Statistics'}, top: 210 }
+      // {
+      //   text: 'SDK 发布管理',
+      //   link: {name: 'sdkManage'},
+      //   children: [
+      //     { text: 'SpaceTarget', link: {name: 'spaceTarget'}, top: 182 }
+      //   ],
+      //   top: 154
+      // },
+      // { text: '用户列表', link: {name: 'userList'}, top: 126 },
+      // { text: '操作日志', link: {name: 'oplog'}, top: 210 }
 
     //   { text: '数据下载', link: {name: 'Down'}, top: 210 }
       // ,

+ 3 - 3
src/page/login/index.vue

@@ -89,7 +89,7 @@ export default {
   },
   methods: {
     submitForm (formName) {
-      console.log('process.env.VUE_APP_GJEDITION',process.env.GJEDITION)
+      console.log('process.env.VUE_APP_GJEDITION', process.env.GJEDITION)
       this.$refs[formName].validate((valid) => {
         if (valid) {
           this.login()
@@ -114,7 +114,7 @@ export default {
 
       if (data.code === 0) {
         this.$http.setToken(data.data.token)
-        this.$router.replace({name: 'Home'})
+        this.$router.replace({name: 'device'})
       } else {
         this.$alert('登录失败', '提示', {
           confirmButtonText: '确定',
@@ -129,7 +129,7 @@ export default {
     let token = sessionStorage.getItem('token')
     if (token) {
       this.$http.setToken('token', token)
-      this.$router.replace({name: 'Home'})
+      this.$router.replace({name: 'device'})
     }
   }
 }