befly-admin-ui 1.9.10 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/layouts/default.vue +1 -1
- package/package.json +4 -4
- package/views/config/dict/components/edit.vue +1 -1
- package/views/config/dict/index.vue +1 -1
- package/views/config/dictType/components/edit.vue +1 -1
- package/views/config/dictType/index.vue +1 -1
- package/views/config/system/components/edit.vue +1 -1
- package/views/config/system/index.vue +1 -1
- package/views/people/admin/components/edit.vue +1 -1
- package/views/people/admin/index.vue +1 -1
- package/views/permission/role/components/edit.vue +1 -1
- package/views/permission/role/index.vue +1 -1
package/layouts/default.vue
CHANGED
|
@@ -346,7 +346,7 @@ async function onPasswordSubmit(context) {
|
|
|
346
346
|
const hashedPassword = await hashPassword($Data.passwordForm.password);
|
|
347
347
|
const storedPassword = await hashPassword(hashedPassword);
|
|
348
348
|
|
|
349
|
-
await $Http("/core/admin/
|
|
349
|
+
await $Http("/core/admin/update", {
|
|
350
350
|
id: $Data.userInfo.id,
|
|
351
351
|
password: storedPassword
|
|
352
352
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-admin-ui",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.10.0",
|
|
4
|
+
"gitHead": "976e70ee1f6f959e9def8189bd43ad4c0d454b7f",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Befly - 管理后台功能组件",
|
|
7
7
|
"keywords": [
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"tdesign-icons-vue-next": "^0.4.4",
|
|
51
|
-
"tdesign-vue-next": "^1.
|
|
51
|
+
"tdesign-vue-next": "^1.20.0",
|
|
52
52
|
"vue": "^3.5.34",
|
|
53
|
-
"vue-router": "^5.0.
|
|
53
|
+
"vue-router": "^5.0.7"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -70,7 +70,7 @@ async function handleSubmit() {
|
|
|
70
70
|
|
|
71
71
|
const valid = await form.validate();
|
|
72
72
|
if (valid !== true) return;
|
|
73
|
-
const apiUrl = props.actionType === "add" ? "/core/dict/
|
|
73
|
+
const apiUrl = props.actionType === "add" ? "/core/dict/insert" : "/core/dict/update";
|
|
74
74
|
const params = {
|
|
75
75
|
typeCode: $Data.formData.typeCode,
|
|
76
76
|
key: $Data.formData.key,
|
|
@@ -63,7 +63,7 @@ async function handleSubmit() {
|
|
|
63
63
|
if (valid !== true) return;
|
|
64
64
|
|
|
65
65
|
try {
|
|
66
|
-
const apiUrl = props.actionType === "add" ? "/core/dictType/
|
|
66
|
+
const apiUrl = props.actionType === "add" ? "/core/dictType/insert" : "/core/dictType/update";
|
|
67
67
|
const params = {
|
|
68
68
|
code: $Data.formData.code,
|
|
69
69
|
name: $Data.formData.name,
|
|
@@ -148,7 +148,7 @@ async function onSubmit(context) {
|
|
|
148
148
|
|
|
149
149
|
$Data.submitting = true;
|
|
150
150
|
try {
|
|
151
|
-
const api = $Prop.actionType === "upd" ? "/core/sysConfig/
|
|
151
|
+
const api = $Prop.actionType === "upd" ? "/core/sysConfig/update" : "/core/sysConfig/insert";
|
|
152
152
|
await $Http(api, $Data.formData);
|
|
153
153
|
|
|
154
154
|
MessagePlugin.success($Prop.actionType === "upd" ? "编辑成功" : "添加成功");
|
|
@@ -172,7 +172,7 @@ const $Method = {
|
|
|
172
172
|
formData.password = await hashPassword(password);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
const result = await $Http($Computed.isUpdate ? "/core/admin/
|
|
175
|
+
const result = await $Http($Computed.isUpdate ? "/core/admin/update" : "/core/admin/insert", formData);
|
|
176
176
|
|
|
177
177
|
MessagePlugin.success(result.msg);
|
|
178
178
|
$Emit("success");
|
|
@@ -113,7 +113,7 @@ async function onSubmit(context) {
|
|
|
113
113
|
|
|
114
114
|
$Data.submitting = true;
|
|
115
115
|
const formData = $Prop.actionType === "add" ? fieldClear($Data.formData, { omitKeys: ["id", "state"] }) : $Data.formData;
|
|
116
|
-
const res = await $Http($Prop.actionType === "upd" ? "/core/role/
|
|
116
|
+
const res = await $Http($Prop.actionType === "upd" ? "/core/role/update" : "/core/role/insert", formData);
|
|
117
117
|
|
|
118
118
|
MessagePlugin.success(res.msg);
|
|
119
119
|
$Emit("success");
|