diff --git a/examples/App.vue b/examples/App.vue index 82fe77e..13f3976 100644 --- a/examples/App.vue +++ b/examples/App.vue @@ -10,28 +10,29 @@ import { Index, Views } from "noob-mengyxu"; const store = useStore(); const { buff, dictionary, config, permission, role, user, status, log } = Views.menus; -const menus = [ - { - i18n: "menu.home", path: "home", icon: "HomeFilled" - }, - { - i18n: "menu.operator", path: "operator", icon: "Platform", children: [ - buff, dictionary, config, permission, role, user, status, log - ] - }, - { - i18n: "menu.base", path: "base", icon: "House", children: [ - { i18n: "menu.table", path: "table", icon: "List" }, - { i18n: "menu.form", path: "form", icon: "Postcard" }, - ] - }, - { - i18n: "menu.tool", path: "tool", icon: "Tools", children: [ - { i18n: "menu.terminal", path: "terminal", icon: "Platform" }, - { i18n: "menu.color", path: "color", icon: "MagicStick" }, - ] - } -] +// const menus = [ +// { +// i18n: "menu.home", path: "home", icon: "HomeFilled" +// }, +// { +// i18n: "menu.operator", path: "operator", icon: "Platform", children: [ +// buff, dictionary, config, permission, role, user, status, log +// ] +// }, +// { +// i18n: "menu.base", path: "base", icon: "House", children: [ +// { i18n: "menu.table", path: "table", icon: "List" }, +// { i18n: "menu.form", path: "form", icon: "Postcard" }, +// ] +// }, +// { +// i18n: "menu.tool", path: "tool", icon: "Tools", children: [ +// { i18n: "menu.terminal", path: "terminal", icon: "Platform" }, +// { i18n: "menu.color", path: "color", icon: "MagicStick" }, +// ] +// } +// ] +const menus = null; onMounted(() => { }); diff --git a/package.json b/package.json index dc38d7b..f2a14e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "noob-mengyxu", - "version": "0.2.11", + "version": "0.3.0", "main": "index.ts", "module": "index.ts", "keywords": [ diff --git a/packages/manage/router/index.vue b/packages/manage/router/index.vue index bb8b639..f2418d6 100644 --- a/packages/manage/router/index.vue +++ b/packages/manage/router/index.vue @@ -2,9 +2,8 @@ - + @@ -22,6 +21,7 @@ import { reactive, onMounted, ref, onBeforeUnmount } from "vue"; import { useStore } from "vuex"; import { useRouter } from "vue-router"; import { MenuTree, Head, Api } from "noob-mengyxu" +import md5 from "js-md5"; const { state, commit, dispatch } = useStore(); const emit = defineEmits(['updatePwd', 'logout']); @@ -112,8 +112,17 @@ const onLogout = () => { }); } +const updatePwd = pwd => { + pwd.old = md5(pwd.old); + pwd.new = md5(pwd.new); + pwd.reNew = md5(pwd.reNew); + emit('updatePwd', pwd); + Api.user.updatePwd(pwd); +} + onMounted(() => { router.push("/") + dispatch("getMenus"); getUser(true); interval = setInterval(getUser, 5000); window.onresize = onResize; diff --git a/packages/manage/views/permission.vue b/packages/manage/views/permission.vue index dad3f5d..c98f11d 100644 --- a/packages/manage/views/permission.vue +++ b/packages/manage/views/permission.vue @@ -4,15 +4,8 @@ -