guhongwei 2 years ago
parent
commit
f6b4372968
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/components/web-frame/web-parts-one/header-1.vue

+ 5 - 1
src/components/web-frame/web-parts-one/header-1.vue

@@ -8,7 +8,7 @@
               <span @click="toHome()">{{ siteInfo.zhTitle }}</span>
               <span @click="toHome()">{{ siteInfo.zhTitle }}</span>
             </el-col>
             </el-col>
             <el-col :span="12" class="one_2">
             <el-col :span="12" class="one_2">
-              <el-button type="danger" size="small" plain>管理登录</el-button>
+              <el-button type="danger" size="small" plain @click="toLogin()">管理登录</el-button>
             </el-col>
             </el-col>
           </div>
           </div>
         </el-col>
         </el-col>
@@ -54,6 +54,10 @@ export default {
     toHome() {
     toHome() {
       this.$router.push({ path: '/' });
       this.$router.push({ path: '/' });
     },
     },
+    toLogin() {
+      // window.open(`${process.env.VUE_APP_HOST}/padmin`);
+      window.open(`http://47.93.34.200/padmin`);
+    },
   },
   },
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),