|
@ -2,10 +2,10 @@ |
|
|
<div class="flex items-center justify-between pr-5 shadow-sm"> |
|
|
<div class="flex items-center justify-between pr-5 shadow-sm"> |
|
|
<!-- <h1 class="text-lg font-medium py-3 px-6"></h1> --> |
|
|
<!-- <h1 class="text-lg font-medium py-3 px-6"></h1> --> |
|
|
<el-menu :default-active="activeIndex" class="el-menu-demo flex-1" mode="horizontal"> |
|
|
<el-menu :default-active="activeIndex" class="el-menu-demo flex-1" mode="horizontal"> |
|
|
<el-menu-item index="1" @click="toShop">插件商城</el-menu-item> |
|
|
<el-menu-item index="1" @click="toShop">{{ pluginShop }}</el-menu-item> |
|
|
<el-menu-item index="2" @click="toDevelop">开发教程</el-menu-item> |
|
|
<el-menu-item index="2" @click="toDevelop">{{ develop }}</el-menu-item> |
|
|
<el-menu-item index="3" @click="toDown">下载模板</el-menu-item> |
|
|
<el-menu-item index="3" @click="toDown">{{ downloadMould }}</el-menu-item> |
|
|
<el-menu-item index="4" @click="toUp">上传插件</el-menu-item> |
|
|
<el-menu-item index="4" @click="toUp">{{ upload }}</el-menu-item> |
|
|
</el-menu> |
|
|
</el-menu> |
|
|
<el-dropdown> |
|
|
<el-dropdown> |
|
|
<span class="flex items-center"> |
|
|
<span class="flex items-center"> |
|
@ -40,6 +40,10 @@ const router = useRouter(); |
|
|
// const menu = computed(() => store.state.menu); |
|
|
// const menu = computed(() => store.state.menu); |
|
|
const account = computed(() => store.getters['user/account']); |
|
|
const account = computed(() => store.getters['user/account']); |
|
|
const activeIndex = ref('1'); |
|
|
const activeIndex = ref('1'); |
|
|
|
|
|
const pluginShop = ref('插件商城'); |
|
|
|
|
|
const develop = ref('开发教程'); |
|
|
|
|
|
const downloadMould = ref('下载模板'); |
|
|
|
|
|
const upload = ref('上传插件'); |
|
|
|
|
|
|
|
|
// 打开修改密码的页面 |
|
|
// 打开修改密码的页面 |
|
|
function openChangePassword() { |
|
|
function openChangePassword() { |
|
@ -52,6 +56,7 @@ function signOut() { |
|
|
router.push({ name: 'signin' }); |
|
|
router.push({ name: 'signin' }); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 点击跳转路由 |
|
|
function toShop() { |
|
|
function toShop() { |
|
|
router.push({ name: 'plugin-shop' }); |
|
|
router.push({ name: 'plugin-shop' }); |
|
|
} |
|
|
} |
|
|