fix Bug or add example

This commit is contained in:
Ah jung
2021-07-16 17:41:11 +08:00
parent a6aa6d4d6d
commit b4857a7559
27 changed files with 780 additions and 304 deletions

View File

@@ -1,5 +1,3 @@
import { NLayout, NAvatar, NMenu, NDropdown, NBreadcrumb, NTooltip } from 'naive-ui'
import {
SettingOutlined,
SearchOutlined,
@@ -18,7 +16,6 @@ import {
export default {
SettingOutlined,
NDropdown,
LockOutlined,
GithubOutlined,
SearchOutlined,

View File

@@ -256,7 +256,7 @@ export default defineComponent({
]
const avatarOptions = [
{
label: '个人中心',
label: '个人设置',
key: 1
},
{
@@ -269,7 +269,7 @@ export default defineComponent({
const avatarSelect = (key) => {
switch (key) {
case 1:
openUserCentre()
router.push({name:'Setting'})
break;
case 2:
doLogout()
@@ -282,13 +282,6 @@ export default defineComponent({
openDrawer()
}
function openUserCentre() {
notification.info({
content: '提示',
meta: '客官,该功能正在开发中呢...'
})
}
return {
...toRefs(state),
iconList,