diff --git a/source/vue/xzs-admin/src/views/user/admin/edit.vue b/source/vue/xzs-admin/src/views/user/admin/edit.vue index 3478d24..cc5f41e 100644 --- a/source/vue/xzs-admin/src/views/user/admin/edit.vue +++ b/source/vue/xzs-admin/src/views/user/admin/edit.vue @@ -118,7 +118,7 @@ export default { birthDay: null, phone: null } - this.form = lastId + this.form.id = lastId }, ...mapActions('tagsView', { delCurrentView: 'delCurrentView' }) }, diff --git a/source/vue/xzs-admin/src/views/user/student/edit.vue b/source/vue/xzs-admin/src/views/user/student/edit.vue index e01d2b5..ac7748b 100644 --- a/source/vue/xzs-admin/src/views/user/student/edit.vue +++ b/source/vue/xzs-admin/src/views/user/student/edit.vue @@ -113,6 +113,7 @@ export default { }) }, resetForm () { + let lastId = this.form.id this.$refs['form'].resetFields() this.form = { id: null, @@ -127,6 +128,7 @@ export default { phone: null, userLevel: null } + this.form.id = lastId }, ...mapActions('tagsView', { delCurrentView: 'delCurrentView' }) }, diff --git a/source/xzs/src/main/resources/static/admin/index.html b/source/xzs/src/main/resources/static/admin/index.html index 742f22d..b6e85ff 100644 --- a/source/xzs/src/main/resources/static/admin/index.html +++ b/source/xzs/src/main/resources/static/admin/index.html @@ -13,4 +13,4 @@ hm.src = 'https://hm.baidu.com/hm.js?cd8218cd51f800ed2b73e5751cb3f4f9' var s = document.getElementsByTagName('script')[0] s.parentNode.insertBefore(hm, s) - })()