mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-24 20:26:38 +08:00
fixed alipay mobile payment
This commit is contained in:
parent
495f86e7fc
commit
bf30517393
@ -1,5 +1,5 @@
|
|||||||
VUE_APP_API_HOST=http://www.geekai.me:6004
|
VUE_APP_API_HOST=http://localhost:5678
|
||||||
VUE_APP_WS_HOST=ws://www.geekai.me:6004
|
VUE_APP_WS_HOST=ws://localhost:5678
|
||||||
VUE_APP_USER=18888888888
|
VUE_APP_USER=18888888888
|
||||||
VUE_APP_PASS=12345678
|
VUE_APP_PASS=12345678
|
||||||
VUE_APP_ADMIN_USER=admin
|
VUE_APP_ADMIN_USER=admin
|
||||||
|
@ -91,7 +91,7 @@ const connect = () => {
|
|||||||
// 移除事件监听
|
// 移除事件监听
|
||||||
for (const key in store.messageHandlers) {
|
for (const key in store.messageHandlers) {
|
||||||
if (store.socket) {
|
if (store.socket) {
|
||||||
store.socket.removeEventListener('message', this.messageHandlers[key])
|
store.socket.removeEventListener('message', store.messageHandlers[key])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
store.setSocket(null)
|
store.setSocket(null)
|
||||||
|
@ -56,7 +56,7 @@ export const useSharedStore = defineStore('shared', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
removeMessageHandler(key) {
|
removeMessageHandler(key) {
|
||||||
if (this.socket) {
|
if (this.socket.readyState === WebSocket.OPEN) {
|
||||||
this.socket.removeEventListener('message', this.messageHandlers[key])
|
this.socket.removeEventListener('message', this.messageHandlers[key])
|
||||||
}
|
}
|
||||||
delete this.messageHandlers[key]
|
delete this.messageHandlers[key]
|
||||||
|
@ -156,7 +156,7 @@
|
|||||||
<el-tooltip content="删除" placement="top" effect="light">
|
<el-tooltip content="删除" placement="top" effect="light">
|
||||||
<el-button type="danger" :icon="Delete" @click="removeImage(slotProp.item)" circle/>
|
<el-button type="danger" :icon="Delete" @click="removeImage(slotProp.item)" circle/>
|
||||||
</el-tooltip>
|
</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"
|
<el-button type="warning"
|
||||||
@click="publishImage(slotProp.item, false)"
|
@click="publishImage(slotProp.item, false)"
|
||||||
circle>
|
circle>
|
||||||
|
@ -345,8 +345,8 @@ const data = ref({
|
|||||||
extend_secs: 0,
|
extend_secs: 0,
|
||||||
ref_song_id: "",
|
ref_song_id: "",
|
||||||
})
|
})
|
||||||
const loading = ref(true)
|
const loading = ref(false)
|
||||||
const noData = ref(false)
|
const noData = ref(true)
|
||||||
const playList = ref([])
|
const playList = ref([])
|
||||||
const playerRef = ref(null)
|
const playerRef = ref(null)
|
||||||
const showPlayer = ref(false)
|
const showPlayer = ref(false)
|
||||||
@ -368,9 +368,9 @@ onMounted(() => {
|
|||||||
ElMessage.error('复制失败!');
|
ElMessage.error('复制失败!');
|
||||||
})
|
})
|
||||||
|
|
||||||
checkSession().then(user => {
|
checkSession().then(() => {
|
||||||
fetchData(1)
|
fetchData(1)
|
||||||
})
|
}).catch(() => {})
|
||||||
|
|
||||||
store.addMessageHandler("suno",(data) => {
|
store.addMessageHandler("suno",(data) => {
|
||||||
// 丢弃无关消息
|
// 丢弃无关消息
|
||||||
@ -396,6 +396,7 @@ const fetchData = (_page) => {
|
|||||||
if (_page) {
|
if (_page) {
|
||||||
page.value = _page
|
page.value = _page
|
||||||
}
|
}
|
||||||
|
loading.value = true
|
||||||
httpGet("/api/suno/list",{page:page.value, page_size:pageSize.value}).then(res => {
|
httpGet("/api/suno/list",{page:page.value, page_size:pageSize.value}).then(res => {
|
||||||
total.value = res.data.total
|
total.value = res.data.total
|
||||||
const items = []
|
const items = []
|
||||||
|
Loading…
Reference in New Issue
Block a user