From 3de238a21573f261d613c753645dcb063850e588 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Mon, 15 Jan 2024 12:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=89=E4=BA=BA=E8=A1=8C?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=EF=BC=8C=E5=AE=8C=E6=88=90=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=97=E6=9C=8D=E5=8A=A1=E5=99=A8=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 -- src/utils/request.js | 2 +- src/views/VideoList.vue | 30 +++++++++++++++++++++++------- vite.config.js | 2 +- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/main.js b/src/main.js index f5d0df4..c9eb13f 100644 --- a/src/main.js +++ b/src/main.js @@ -8,8 +8,6 @@ import router from '@/router' import globalData from '@/utils/global.js' - - const app=createApp(App); app.provide('globalData',globalData); app.use(router).use(ElementPlus).mount('#app'); diff --git a/src/utils/request.js b/src/utils/request.js index 911a9f5..edca1a8 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -10,7 +10,7 @@ request.interceptors.response.use( if(result.status!==200 ){ router.push("/login") } - if(result.data.message==="NOT_LOGIN"){ + if(result.data.message==="NOT_LOGIN" || result.data.message.includes("The Token has expired on")){ localStorage.removeItem("token"); router.push("/login") } diff --git a/src/views/VideoList.vue b/src/views/VideoList.vue index 35771a7..12ff7bd 100644 --- a/src/views/VideoList.vue +++ b/src/views/VideoList.vue @@ -60,6 +60,16 @@ export default { //alert("id=" + id + " name=" + name); router.push("/video"); }, + // 修改条纹颜色 + tableRowClassName({ row, rowIndex }) { + if (row.human === 1) { + return { + background: "#488aff", + }; + } else { + return ""; + } + }, }, // 生命周期钩子会在组件生命周期的各个不同阶段被调用 @@ -94,7 +104,7 @@ export default { > - + - + 播放 - 删除 + @@ -177,8 +191,10 @@ export default { -
- {{ tokenData.entrydate }},{{ tokenData.hour }} -
- \ No newline at end of file + + \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index a7ad0e1..66a0d2e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -16,7 +16,7 @@ export default defineConfig({ server : { proxy: { '/api': { - target: 'http://localhost:8080', + target: 'https://jp.ljsea.top', changeOrigin: true, rewrite: path => path.replace(/^\/api/, '') }