import {NTabPane, NTabs} from 'naive-ui' import {defineComponent, h, nextTick, onMounted, reactive, ref} from 'vue' import {useRoute} from 'vue-router' import {getTabsCache, setTabsCaches} from '@/hooks/use-async' import {appKey, clientType, messageSenderMode} from '@/utils/constant' import {sysApplicationPage} from '@views/menu-manage/api' import MessageTemplateList from "@views/message/message-template/message-template-list"; import {getMapValueByKey} from "@/utils/objectUtil"; import MusicSheetKt from "@views/music-library/project-music-sheet/module/kt/music-sheet-kt"; import SmsConfig from "@views/message/message-config/sms/sms-config"; export default defineComponent({ name: 'message-config-index', setup() { const state = reactive({ tabName: 'SMS', }) const tabsInstRef = ref() getTabsCache((val: any) => { if (val.form.tabName) { state.tabName = val.form.tabName nextTick(() => tabsInstRef.value?.syncBarPosition()) } }) const route = useRoute() const setTabs = (val: any) => { setTabsCaches(val, 'tabName', route) } onMounted(async () => { nextTick(() => tabsInstRef.value?.syncBarPosition()) }) return () => { return (
setTabs(val)} > {Object.keys(messageSenderMode).map((app: any, index: number) => ( {/*{app == 'SMS' && ()}*/} ))}
) } } })