mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-19 16:38:41 +00:00
修复同步设置,定时器没有正确处理的bug
This commit is contained in:
parent
bacf6817ad
commit
e05e488d44
@ -15,6 +15,7 @@ import ccui from "@xuyanfeng/cc-ui";
|
|||||||
import { Option } from "@xuyanfeng/cc-ui/types/cc-select/const";
|
import { Option } from "@xuyanfeng/cc-ui/types/cc-select/const";
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
import { defineComponent, onMounted, ref, toRaw } from "vue";
|
import { defineComponent, onMounted, ref, toRaw } from "vue";
|
||||||
|
import bus, { BusMsg } from "../bus";
|
||||||
import { appStore, RefreshType } from "../store";
|
import { appStore, RefreshType } from "../store";
|
||||||
const { CCInput, CCButton, CCInputNumber, CCSelect, CCCheckBox, CCProp, CCColor } = ccui.components;
|
const { CCInput, CCButton, CCInputNumber, CCSelect, CCCheckBox, CCProp, CCColor } = ccui.components;
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@ -45,11 +46,13 @@ export default defineComponent({
|
|||||||
const store = appStore();
|
const store = appStore();
|
||||||
store.config.refreshType = type;
|
store.config.refreshType = type;
|
||||||
store.save();
|
store.save();
|
||||||
|
bus.emit(BusMsg.UpdateSettings);
|
||||||
},
|
},
|
||||||
onChangeRefreshTime(v: number) {
|
onChangeRefreshTime(v: number) {
|
||||||
const store = appStore();
|
const store = appStore();
|
||||||
store.config.refreshTime = v;
|
store.config.refreshTime = v;
|
||||||
store.save();
|
store.save();
|
||||||
|
bus.emit(BusMsg.UpdateSettings);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user