This commit is contained in:
熊丽君
2021-08-02 17:57:56 +08:00
parent 7ffe7e7060
commit f0d1deaf6f
2 changed files with 22 additions and 64 deletions

View File

@ -8,9 +8,9 @@
<!-- 头部 -->
<div class="header">
<div class="login">
<el-button type="text" @click="aaa">登录</el-button>
<el-button type="text" @click="handlePage">登录</el-button>
<i class="mark">|</i>
<el-button type="text" @click="aaa">注册</el-button>
<el-button type="text" @click="handlePage">注册</el-button>
</div>
<div class="img2_box">
<img src="@/assets/image/02.png" alt="" />
@ -29,7 +29,7 @@
:class="path == item.path ? 'is-active' : ''"
v-for="item in lisList"
:key="item.path"
@click="abc(item.path)"
@click="handlePath(item.path)"
>
{{ item.name }}
<!-- <router-link :to="item.path">
@ -86,10 +86,10 @@ export default {
};
},
methods: {
aaa() {
handlePage() {
this.$router.push({ path: '/login' });
},
abc(path) {
handlePath(path) {
this.path = path;
this.$router.push({ path });
}