|
@@ -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('首页未出');
|