lrf402788946 5 år sedan
förälder
incheckning
06ffe8cfe7
1 ändrade filer med 5 tillägg och 2 borttagningar
  1. 5 2
      src/layout/live/head.vue

+ 5 - 2
src/layout/live/head.vue

@@ -13,8 +13,8 @@
             {{ user.name }}
           </p>
           <p v-else>
-            <button type="button">登录</button>
-            <button type="button">注册</button>
+            <button type="button" @click="toLogin">登录</button>
+            <button type="button" @click="toLogin">注册</button>
           </p>
         </div>
       </div>
@@ -72,6 +72,9 @@ export default {
   },
   created() {},
   methods: {
+    toLogin() {
+      window.location.href = 'http://free.liaoningdoupo.com/platlogin';
+    },
     turnTo(type) {
       if (type == 'index') {
         console.log('首页未出');