|
@@ -239,12 +239,12 @@ export default defineComponent({
|
|
const setSvg = (val: any) => {
|
|
const setSvg = (val: any) => {
|
|
console.log(val)
|
|
console.log(val)
|
|
}
|
|
}
|
|
- const goIndex = () => {
|
|
|
|
- router.push({
|
|
|
|
- name: 'searchdetail',
|
|
|
|
- params: { type: 'music' }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ // const goIndex = () => {
|
|
|
|
+ // router.push({
|
|
|
|
+ // name: 'searchdetail',
|
|
|
|
+ // params: { type: 'music' }
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
// window.setSvg = (val)=>{
|
|
// window.setSvg = (val)=>{
|
|
// setSvg(val)
|
|
// setSvg(val)
|
|
@@ -255,15 +255,15 @@ export default defineComponent({
|
|
state.showCode =
|
|
state.showCode =
|
|
state.userType == 'STUDENT' || !state.userType ? true : false
|
|
state.userType == 'STUDENT' || !state.userType ? true : false
|
|
|
|
|
|
- if (window.history && window.history.pushState) {
|
|
|
|
- history.pushState(null, '', document.URL)
|
|
|
|
- window.addEventListener('popstate', goIndex, false)
|
|
|
|
- }
|
|
|
|
|
|
+ // if (window.history && window.history.pushState) {
|
|
|
|
+ // history.pushState(null, '', document.URL)
|
|
|
|
+ // window.addEventListener('popstate', goIndex, false)
|
|
|
|
+ // }
|
|
|
|
|
|
// 拼链接
|
|
// 拼链接
|
|
})
|
|
})
|
|
onDeactivated(() => {
|
|
onDeactivated(() => {
|
|
- window.removeEventListener('popstate', goIndex, false)
|
|
|
|
|
|
+ // window.removeEventListener('popstate', goIndex, false)
|
|
})
|
|
})
|
|
const base64ToBlob = data => {
|
|
const base64ToBlob = data => {
|
|
var arr = data.split(','),
|
|
var arr = data.split(','),
|
|
@@ -378,8 +378,8 @@ export default defineComponent({
|
|
}
|
|
}
|
|
const gotoMusic = () => {
|
|
const gotoMusic = () => {
|
|
router.push({
|
|
router.push({
|
|
- name: 'searchdetail',
|
|
|
|
- params: {
|
|
|
|
|
|
+ name: 'musicLibrary',
|
|
|
|
+ query: {
|
|
search: state.teacherDetail.userName as string,
|
|
search: state.teacherDetail.userName as string,
|
|
type: 'music'
|
|
type: 'music'
|
|
}
|
|
}
|