fix : 项目实施台账时间搜索
This commit is contained in:
@@ -220,7 +220,11 @@ const getList = async () => {
|
||||
if (api) {
|
||||
localData.loading = true
|
||||
try {
|
||||
const {code, data, msg} = await requestList(api, queryParmas)
|
||||
const {code, data, msg} = await requestList(api, queryParmas).then(res=>{
|
||||
console.log(res)
|
||||
return res
|
||||
})
|
||||
console.log(code,data,msg)
|
||||
if (code === 1000) {
|
||||
if (data.rows) {
|
||||
localData.list = data.rows
|
||||
@@ -239,6 +243,10 @@ const getList = async () => {
|
||||
localData.loading = false
|
||||
}
|
||||
} catch (error) {
|
||||
console.log("error",error)
|
||||
if (!error){
|
||||
return
|
||||
}
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
message: '请求数据失败',
|
||||
@@ -305,6 +313,7 @@ onMounted(() => {
|
||||
getList()
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user