mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-20 00:48:43 +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 { storeToRefs } from "pinia";
|
||||
import { defineComponent, onMounted, ref, toRaw } from "vue";
|
||||
import bus, { BusMsg } from "../bus";
|
||||
import { appStore, RefreshType } from "../store";
|
||||
const { CCInput, CCButton, CCInputNumber, CCSelect, CCCheckBox, CCProp, CCColor } = ccui.components;
|
||||
export default defineComponent({
|
||||
@ -45,11 +46,13 @@ export default defineComponent({
|
||||
const store = appStore();
|
||||
store.config.refreshType = type;
|
||||
store.save();
|
||||
bus.emit(BusMsg.UpdateSettings);
|
||||
},
|
||||
onChangeRefreshTime(v: number) {
|
||||
const store = appStore();
|
||||
store.config.refreshTime = v;
|
||||
store.save();
|
||||
bus.emit(BusMsg.UpdateSettings);
|
||||
},
|
||||
};
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user