fixed alipay mobile payment

This commit is contained in:
RockYang 2024-10-05 11:45:44 +08:00
parent b62218110e
commit 6e02bee4b7
5 changed files with 10 additions and 9 deletions

View File

@ -1,5 +1,5 @@
VUE_APP_API_HOST=http://www.geekai.me:6004
VUE_APP_WS_HOST=ws://www.geekai.me:6004
VUE_APP_API_HOST=http://localhost:5678
VUE_APP_WS_HOST=ws://localhost:5678
VUE_APP_USER=18888888888
VUE_APP_PASS=12345678
VUE_APP_ADMIN_USER=admin

View File

@ -91,7 +91,7 @@ const connect = () => {
//
for (const key in store.messageHandlers) {
if (store.socket) {
store.socket.removeEventListener('message', this.messageHandlers[key])
store.socket.removeEventListener('message', store.messageHandlers[key])
}
}
store.setSocket(null)

View File

@ -56,7 +56,7 @@ export const useSharedStore = defineStore('shared', {
}
},
removeMessageHandler(key) {
if (this.socket) {
if (this.socket.readyState === WebSocket.OPEN) {
this.socket.removeEventListener('message', this.messageHandlers[key])
}
delete this.messageHandlers[key]

View File

@ -156,7 +156,7 @@
<el-tooltip content="删除" placement="top" effect="light">
<el-button type="danger" :icon="Delete" @click="removeImage(slotProp.item)" circle/>
</el-tooltip>
<el-tooltip content="取消分享" placement="top" effect="light" v-if="!slotProp.item.publish">
<el-tooltip content="取消分享" placement="top" effect="light" v-if="slotProp.item.publish">
<el-button type="warning"
@click="publishImage(slotProp.item, false)"
circle>

View File

@ -345,8 +345,8 @@ const data = ref({
extend_secs: 0,
ref_song_id: "",
})
const loading = ref(true)
const noData = ref(false)
const loading = ref(false)
const noData = ref(true)
const playList = ref([])
const playerRef = ref(null)
const showPlayer = ref(false)
@ -368,9 +368,9 @@ onMounted(() => {
ElMessage.error('复制失败!');
})
checkSession().then(user => {
checkSession().then(() => {
fetchData(1)
})
}).catch(() => {})
store.addMessageHandler("suno",(data) => {
//
@ -396,6 +396,7 @@ const fetchData = (_page) => {
if (_page) {
page.value = _page
}
loading.value = true
httpGet("/api/suno/list",{page:page.value, page_size:pageSize.value}).then(res => {
total.value = res.data.total
const items = []