修复关闭窗口时,窗口信息显示错误的BUG

This commit is contained in:
fangxiang 2021-12-23 08:48:50 +08:00
parent b3507de614
commit 5811d2f7f6
2 changed files with 15 additions and 3 deletions

View File

@ -644,6 +644,7 @@
@click="apply"
/>
<q-btn
v-if="false"
:loading="loading"
flat
:label="$t('apply and exit')"

View File

@ -252,6 +252,7 @@ import EventBus, { EventNamesDefine } from "src/common/EventBus";
import GlobalData from "src/common/GlobalData";
import { defineComponent, ref, watch, onUnmounted } from "vue";
import { useStore } from "src/store";
import { SignalSourceEntity } from "src/entities/SignalSourceEntity";
class _Flags {
get up_flag() {
@ -298,9 +299,19 @@ export default defineComponent({
setup(props, { emit }) {
const $store = useStore();
const signal_source = ref(
const signal_source = ref(new SignalSourceEntity());
const reload_signal_source = () => {
SignalSourceEntity.copy(
signal_source.value,
GlobalData.getInstance().getSignalSource(props.signal_source_table_uuid)
);
};
reload_signal_source();
watch(props, (a, b) => {
reload_signal_source();
});
let selected = ref(false);
let focused = ref(false);