fix(client): コントロールパネルのカスタム絵文字タブが切り替わらないように見える問題を修正

This commit is contained in:
syuilo 2021-10-31 19:37:18 +09:00
parent 540e6e4f99
commit 1a883f4f05
3 changed files with 11 additions and 4 deletions

View file

@ -26,7 +26,7 @@
</template>
<script lang="ts">
import { computed, defineAsyncComponent, defineComponent, nextTick, onMounted, reactive, ref, watch } from 'vue';
import { computed, defineAsyncComponent, defineComponent, isRef, nextTick, onMounted, reactive, ref, watch } from 'vue';
import { i18n } from '@client/i18n';
import MkSuperMenu from '@client/components/ui/super-menu.vue';
import FormGroup from '@client/components/debobigego/group.vue';
@ -73,7 +73,13 @@ export default defineComponent({
const view = ref(null);
const el = ref(null);
const onInfo = (viewInfo) => {
childInfo.value = viewInfo;
if (isRef(viewInfo)) {
watch(viewInfo, () => {
childInfo.value = viewInfo.value;
}, { immediate: true });
} else {
childInfo.value = viewInfo;
}
};
const pageProps = ref({});