up
This commit is contained in:
@ -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 });
|
||||
}
|
||||
|
Reference in New Issue
Block a user