add auth layout
This commit is contained in:
1 parent
ac450b0e04
commit
1ac9441a4d
10 files changed
+100
-15
No files matched your search
@@ -5,11 +5,18 @@
|
||||
</el-aside>
|
||||
<el-main>
|
||||
<el-row>
|
||||
<el-col>
|
||||
<el-col :span="20">
|
||||
<el-menu :default-active="active" class="el-menu-demo" mode="horizontal" @select="onSelect">
|
||||
<el-menu-item index="/content" v-t="'common.nav.content'"></el-menu-item>
|
||||
</el-menu>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<div class="mt-4 pr-10">
|
||||
<el-button type="primary" class="float-right" size="small" round @click="onLogin">{{
|
||||
$t('common.button.login')
|
||||
}}</el-button>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-main>
|
||||
</el-container>
|
||||
@@ -36,6 +43,11 @@ export default defineComponent({
|
||||
this.$router.push({
|
||||
name: 'home'
|
||||
});
|
||||
},
|
||||
onLogin() {
|
||||
this.$router.push({
|
||||
name: 'login'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user