mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-07 05:13:11 +00:00
perf: 优化数据结构
This commit is contained in:
parent
dc0f925d24
commit
0f75556bed
@ -147,7 +147,7 @@
|
||||
<div class="aibot-setting">
|
||||
<SystemAibot
|
||||
v-if="aibotTabAction == item.value"
|
||||
:type="aibotTabAction"
|
||||
:type="item.value"
|
||||
@on-update-setting="handleAITags" />
|
||||
</div>
|
||||
</TabPane>
|
||||
|
||||
@ -78,6 +78,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.formData = $A.getStorageJson(`systemAibot.${this.type}`);
|
||||
this.systemSetting();
|
||||
},
|
||||
computed: {
|
||||
@ -190,6 +191,7 @@ export default {
|
||||
this.$emit('on-update-setting', data);
|
||||
this.formData = data;
|
||||
this.formDatum_bak = $A.cloneJSON(this.formData);
|
||||
$A.setStorage(`systemAibot.${this.type}`, data);
|
||||
}).catch(({msg}) => {
|
||||
if (save) {
|
||||
$A.modalError(msg);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user