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