diff --git a/index.html b/index.html index 8388c4b..4daef50 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,10 @@ - + - Vite + Vue + 鼎新工具集
diff --git a/src/apis/update.js b/src/apis/update.js index cc89431..bec1c4a 100644 --- a/src/apis/update.js +++ b/src/apis/update.js @@ -3,7 +3,7 @@ import request from "@/request/index.js"; export const cinema_list = () => { // console.log('cinema_list') return request({ - url: '/update/cinema/', + url: '/update/cinema/refresh', method: 'get' }) } diff --git a/src/views/update/index.vue b/src/views/update/index.vue index 9486cd9..e1b90b7 100644 --- a/src/views/update/index.vue +++ b/src/views/update/index.vue @@ -33,7 +33,7 @@ const submitSearch = async (formEl) => { console.log('至少执行了') console.log(cinemaSearch.ip) const {ip, version} = unref(cinemaSearch) - + tableData.value = [] await cinema_search({ip, version}).then( res => { if (Array.isArray(res)) { @@ -75,6 +75,7 @@ const resetSearch = (formEl) => { const tableData = ref([]) async function get_table_data() { + tableData.value = [] await cinema_list().then(res => { if (Array.isArray(res)) { tableData.value = [...res] @@ -134,7 +135,7 @@ onMounted( - +