Browse Source

update 调整不规范导包

疯狂的狮子li 3 years ago
parent
commit
60404a6564
2 changed files with 2 additions and 4 deletions
  1. 1 2
      ruoyi-ui/src/layout/components/Navbar.vue
  2. 1 2
      ruoyi-ui/src/views/index.vue

+ 1 - 2
ruoyi-ui/src/layout/components/Navbar.vue

@@ -56,7 +56,6 @@ import SizeSelect from '@/components/SizeSelect'
 import Search from '@/components/HeaderSearch'
 import RuoYiGit from '@/components/RuoYi/Git'
 import RuoYiDoc from '@/components/RuoYi/Doc'
-import config from '@/../vue.config'
 
 export default {
   components: {
@@ -103,7 +102,7 @@ export default {
         type: 'warning'
       }).then(() => {
         this.$store.dispatch('LogOut').then(() => {
-          location.href = config.publicPath + 'index';
+          this.$router.push({ path: "/login" })
         })
       }).catch(() => {});
     }

+ 1 - 2
ruoyi-ui/src/views/index.vue

@@ -478,14 +478,13 @@
 </template>
 
 <script>
-import config from '@/../package.json'
 
 export default {
   name: "Index",
   data() {
     return {
       // 版本号
-      version: config.version,
+      version: "3.2.0",
     };
   },
   methods: {