소스 검색

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

ming 3 년 전
부모
커밋
a88343515e
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      src/views/index.vue

+ 10 - 1
src/views/index.vue

@@ -14,7 +14,7 @@
           <span>{{ route.meta.title }}</span>
         </router-link>
         <!-- <a
-          :href="'https://wx.ewoogi.com/manage/#/'"
+          :href="'http://101.133.214.75:13201/backStage'"
           class="router-left router_left1"
           >后台管理</a
         > -->
@@ -145,6 +145,15 @@ export default {
   },
   methods: {
     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('开发中....');
 
     },