no message
This commit is contained in:
17
js/index.js
17
js/index.js
@@ -152,20 +152,19 @@ const forumApp = Vue.createApp({
|
||||
let list = ref([]) // 列表数据
|
||||
let page = 1
|
||||
let total = ref(0) // 回答总数
|
||||
let loading = false
|
||||
let loading = ref(false)
|
||||
|
||||
// 获取列表数据
|
||||
const getList = () => {
|
||||
if (page == 0 || loading) return
|
||||
loading = true
|
||||
if (page == 0 || loading.value) return
|
||||
loading.value = true
|
||||
|
||||
$ajax("/api/lists", {
|
||||
page,
|
||||
limit: 20,
|
||||
keyword: keyword.value,
|
||||
type: typePitch.value,
|
||||
}
|
||||
).then(res => {
|
||||
}).then(res => {
|
||||
if (res.code != 200) return
|
||||
|
||||
let data = res.data
|
||||
@@ -183,7 +182,7 @@ const forumApp = Vue.createApp({
|
||||
else isSearchMode.value = false
|
||||
|
||||
|
||||
}).finally(() => loading = false)
|
||||
}).finally(() => loading.value = false)
|
||||
}
|
||||
|
||||
let typeList = ref([])
|
||||
@@ -224,7 +223,7 @@ const forumApp = Vue.createApp({
|
||||
if (detailLoading.value) return
|
||||
detailLoading.value = true
|
||||
|
||||
uniqid = "fubm5CnD05qj" // 标记一下 8yr1m1fOH5CS
|
||||
// uniqid = "fubm5CnD05qj" // 标记一下 8yr1m1fOH5CS
|
||||
|
||||
detailsInfo.value = {}
|
||||
answerList.value = []
|
||||
@@ -1289,7 +1288,6 @@ const forumApp = Vue.createApp({
|
||||
watch(() => {
|
||||
if (questionsSetp.value || myType.value || IAnswerEditState.value || IAnswerState.value || dialogSrc.value) document.body.style.overflow = 'hidden'
|
||||
else document.body.style.overflow = 'auto'
|
||||
|
||||
})
|
||||
|
||||
return {
|
||||
@@ -1395,7 +1393,8 @@ const forumApp = Vue.createApp({
|
||||
msg,
|
||||
myOpenDetails,
|
||||
handleAnswerText,
|
||||
getCurrentUrl
|
||||
getCurrentUrl,
|
||||
loading,
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user