hrp-ui-base 1.0.8 → 1.1.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/package.json
CHANGED
|
@@ -82,9 +82,11 @@ export const useLayoutConfigStore = defineStore(
|
|
|
82
82
|
navigationBar: !!userConfig.value.navigationBar,
|
|
83
83
|
menuPosition: userConfig.value.menuPosition || "top",
|
|
84
84
|
};
|
|
85
|
-
await HomeController.savePersonalization(submitObj).then((data) => {
|
|
85
|
+
await HomeController.savePersonalization(submitObj).then(async (data) => {
|
|
86
86
|
if (data.code === 200) {
|
|
87
87
|
console.debug("修改成功!");
|
|
88
|
+
// 延时后再查询详情,避免后端写入未完成时读到旧数据
|
|
89
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
88
90
|
getUserConfig();
|
|
89
91
|
}
|
|
90
92
|
});
|