Browse Source

修改跳转后台代码判断逻辑

ming 3 years ago
parent
commit
a88343515e
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/index.vue

+ 10 - 1
src/views/index.vue

@@ -14,7 +14,7 @@
           <span>{{ route.meta.title }}</span>
           <span>{{ route.meta.title }}</span>
         </router-link>
         </router-link>
         <!-- <a
         <!-- <a
-          :href="'https://wx.ewoogi.com/manage/#/'"
+          :href="'http://101.133.214.75:13201/backStage'"
           class="router-left router_left1"
           class="router-left router_left1"
           >后台管理</a
           >后台管理</a
         > -->
         > -->
@@ -145,6 +145,15 @@ export default {
   },
   },
   methods: {
   methods: {
     goAdmin(){
     goAdmin(){
+
+      if (window.location.host.indexOf("localhost") != -1) {
+       
+               window.location.href = 'http://localhost:10000'
+            } else {
+                window.location.href = 'http://101.133.214.75:13201/backStage'
+            }
+
+
       ElMessage.warning('开发中....');
       ElMessage.warning('开发中....');
 
 
     },
     },