mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 08:46:38 +08:00
fixed alipay mobile payment
This commit is contained in:
parent
b62218110e
commit
6e02bee4b7
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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]
|
||||
|
@ -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>
|
||||
|
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user