update styles
This commit is contained in:
1 parent
32fd986555
commit
83b9afcd33
7 files changed
+70
-28
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-breadcrumb separator="/">
|
||||
<el-breadcrumb separator="/" class="breadcrumb">
|
||||
<el-breadcrumb-item :to="{ path: '/' }">{{ $t('common.nav.home') }}</el-breadcrumb-item>
|
||||
<el-breadcrumb-item v-for="item in items" :to="{ name: item.name }">{{ item.meta.title }}</el-breadcrumb-item>
|
||||
</el-breadcrumb>
|
||||
@@ -17,3 +17,9 @@ export default {
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.breadcrumb {
|
||||
padding: 10px;
|
||||
}
|
||||
</style>
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-container id="header" class="header">
|
||||
<el-aside width="200px">
|
||||
<el-aside width="250px">
|
||||
<img src="@/assets/images/logo.png" class="logo" />
|
||||
</el-aside>
|
||||
<el-main>
|
||||
@@ -48,7 +48,6 @@ export default {
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
.logo {
|
||||
width: 130px;
|
||||
margin-left: 30px;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<el-menu class="h-full" router>
|
||||
<el-menu-item index="/content/article">
|
||||
<el-menu class="h-full" router :default-active="$route.name">
|
||||
<el-menu-item index="article" @select="onSelect">
|
||||
<el-icon class="mr-2">
|
||||
<document />
|
||||
</el-icon>
|
||||
<template #title>{{ $t('content.nav.article') }}</template>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/content/platform">
|
||||
<el-menu-item index="platform">
|
||||
<el-icon class="mr-2">
|
||||
<box />
|
||||
</el-icon>
|
||||
@@ -30,7 +30,14 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log(routes);
|
||||
console.log(this.$route);
|
||||
},
|
||||
methods: {
|
||||
onSelect(val) {
|
||||
this.$router.push({
|
||||
name: val
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in new issue
Block a user