scorpio 3 жил өмнө
parent
commit
8252e1f772
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/page/login.vue

+ 1 - 1
src/page/login.vue

@@ -165,7 +165,7 @@ export default {
   },
   created () {
     this.permission.cleanPermission()
-    this.dev = window.location.href.toString().indexOf('dev') > -1
+    this.dev = window.location.href.toString().indexOf('dev') > -1 || window.location.href.toString().indexOf('localhost')
     console.log(window.location.href.toString())
     removeToken()
     this.init()