mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-05-21 00:14:00 +00:00
旧代码
This commit is contained in:
parent
8465e856d1
commit
db3d6a4572
@ -15,7 +15,6 @@ 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, ref } from "vue";
|
import { defineComponent, ref } from "vue";
|
||||||
import { 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({
|
||||||
@ -46,13 +45,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);
|
// 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);
|
// bus.emit(BusMsg.UpdateSettings);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user