Browse Source

为了适配生产环境,修改配置文件

ljm\李 1 year ago
parent
commit
dcd92de31f
3 changed files with 3 additions and 3 deletions
  1. 1 1
      public/index.html
  2. 1 1
      src/layout/components/Navbar.vue
  3. 1 1
      src/router/index.js

+ 1 - 1
public/index.html

@@ -204,6 +204,6 @@
 		    <div class="load_title">正在加载系统资源,请耐心等待</div>
         </div>
 	</div>
-   <script src="/tinymce/tinymce.min.js"></script>
+   <script src="/admin/tinymce/tinymce.min.js"></script>
   </body>
 </html>

+ 1 - 1
src/layout/components/Navbar.vue

@@ -201,7 +201,7 @@ export default {
       })
         .then(() => {
           this.$store.dispatch("LogOut").then(() => {
-            location.href = "/admin/index";
+            location.href = "/admin";
           });
         })
         .catch(() => {});

+ 1 - 1
src/router/index.js

@@ -172,7 +172,7 @@ Router.prototype.push = function push(location) {
 
 export default new Router({
   base: "/admin",
-  mode: 'history', // 去掉url中的#
+  mode: 'hash', // 去掉url中的#
   scrollBehavior: () => ({ y: 0 }),
   routes: constantRoutes
 })