diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 184adffb84..48e6959159 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -6,17 +6,42 @@ ref="de-theme" component-name="ThemeSetting" /> + + + diff --git a/frontend/src/store/modules/user.js b/frontend/src/store/modules/user.js index 648afec6ad..18aca6f46a 100644 --- a/frontend/src/store/modules/user.js +++ b/frontend/src/store/modules/user.js @@ -13,6 +13,7 @@ const getDefaultState = () => { name: '', user: {}, roles: [], + passwordModified: true, avatar: '', // 第一次加载菜单时用到 loadMenus: false, @@ -66,7 +67,10 @@ const mutations = { if (language && i18n.locale !== language) { i18n.locale = language } - } + }, + SET_PASSWORD_MODIFIED: (state, passwordModified) => { + state.passwordModified = passwordModified + }, } const actions = { diff --git a/frontend/src/views/system/user/PasswordUpdateForm.vue b/frontend/src/views/system/user/PasswordUpdateForm.vue new file mode 100644 index 0000000000..4962649982 --- /dev/null +++ b/frontend/src/views/system/user/PasswordUpdateForm.vue @@ -0,0 +1,111 @@ + + + \ No newline at end of file diff --git a/frontend/src/views/system/user/PersonPwd.vue b/frontend/src/views/system/user/PersonPwd.vue index 55e6939488..8e5a4f1ca1 100644 --- a/frontend/src/views/system/user/PersonPwd.vue +++ b/frontend/src/views/system/user/PersonPwd.vue @@ -5,45 +5,7 @@
{{ $t('user.change_password') }}
- - - - - - - - - - - - {{ $t('commons.confirm') }} - - + @@ -51,39 +13,9 @@