import { defineComponent, ref } from 'vue'; import styles from './index.module.less'; import { useUserStore } from '/src/store/modules/users'; export default defineComponent({ name: 'song-modal', props: { item: { type: Object, default: () => ({}) } }, setup(props) { const userStore = useUserStore(); const iframeRef = ref(); const isLoaded = ref(false); const origin = /(localhost|192)/.test(location.host) ? 'https://test.lexiaoya.cn' : location.origin; const src = `${origin}/instrument?modelType=practise&id=${props.item.content}&Authorization=${userStore.getToken}`; return () => (
); } });