From 1247c83be38296736239f046da915b72bf52e698 Mon Sep 17 00:00:00 2001 From: chutingting Date: Mon, 13 Nov 2023 19:39:35 +0800 Subject: [PATCH] =?UTF-8?q?m=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/template.js | 3 ++- src/views/video/index.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apis/template.js b/src/apis/template.js index e0b9ff9..21cdab2 100644 --- a/src/apis/template.js +++ b/src/apis/template.js @@ -6,8 +6,9 @@ import request from "@/utils/request.js"; * @returns data */ export function templateListApi(pageNum, pageSize) { + let api = localStorage.getItem("isAdmin") === '1' && localStorage.getItem("localDeploy") === 'true' ? '/personMould/alList' : '/personMould/serviceMouldList' return request({ - url: `/personMould/serviceMouldList?pageNum=${pageNum}&pageSize=${pageSize}`, + url: `${api}?pageNum=${pageNum}&pageSize=${pageSize}`, method: 'get' }) } \ No newline at end of file diff --git a/src/views/video/index.vue b/src/views/video/index.vue index 5fc4977..a2ab4f0 100644 --- a/src/views/video/index.vue +++ b/src/views/video/index.vue @@ -76,7 +76,7 @@ const total = ref(0); const getDate = (val) => { - return dayjs(val).format("YYYY-MM-DD"); + return dayjs(Number(val)).format("YYYY-MM-DD"); }; const handleSizeChange = (val) => {