|
@@ -33,10 +33,12 @@ import PlayItem from './component/play-item';
|
|
|
import PlayLoading from './component/play-loading';
|
|
|
import TheNoticeBar from '/src/components/TheNoticeBar';
|
|
|
import { api_musicSheetPage, api_subjectList } from '../xiaoku-ai/api';
|
|
|
+import { useUserStore } from '/src/store/modules/users';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'XiaokuMusic',
|
|
|
setup() {
|
|
|
+ const user = useUserStore();
|
|
|
const route = useRoute();
|
|
|
const router = useRouter();
|
|
|
const forms = reactive({
|
|
@@ -302,7 +304,7 @@ export default defineComponent({
|
|
|
const origin = /(localhost|192)/.test(location.host)
|
|
|
? 'https://test.lexiaoya.cn'
|
|
|
: location.origin;
|
|
|
- const src = `${origin}/instrument?platform=pc&id=${activeItem.value.id}`;
|
|
|
+ const src = `${origin}/instrument?platform=pc&id=${activeItem.value.id}&Authorization=${user.getToken}`;
|
|
|
window.open(src);
|
|
|
}}
|
|
|
/>
|