From cd7f0e4d274eb2bed79da8591555bf4d4f64ba89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E9=A3=9E?= Date: Tue, 11 Mar 2025 15:41:37 +0800 Subject: [PATCH] =?UTF-8?q?add:=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/StockOut/index.ts | 2 +- src/api/common/index.ts | 6 +- src/utils/storage.ts | 2 +- src/views/login/index.vue | 4 + src/views/system/user/index.vue | 1 + vite.config.ts | 4 +- yarn.lock | 525 ++++++++++++++++++-------------- 7 files changed, 308 insertions(+), 236 deletions(-) diff --git a/src/api/StockOut/index.ts b/src/api/StockOut/index.ts index f374e22..ac561ad 100644 --- a/src/api/StockOut/index.ts +++ b/src/api/StockOut/index.ts @@ -109,7 +109,7 @@ export function Commit4CToERP(data: any) { * */ export function RejectsAndExpCheck(data: any) { return request({ - url: '/api/api/SaleOut/RejectsAndExpCheck', + url: '/api/SaleOut/RejectsAndExpCheck', method: 'post', data: data, }); diff --git a/src/api/common/index.ts b/src/api/common/index.ts index 5dcc9f3..5a8e4ec 100644 --- a/src/api/common/index.ts +++ b/src/api/common/index.ts @@ -6,7 +6,7 @@ import request from '@/utils/request'; */ export function getQueryList(queryParams: any) { return request({ - url: '/api/api/query', + url: '/api/query', method: 'post', data: queryParams, }); @@ -14,7 +14,7 @@ export function getQueryList(queryParams: any) { export function getQueryPageList(queryParams: any) { return request({ - url: '/api/api/queryPage', + url: '/api/queryPage', method: 'post', data: queryParams, }); @@ -22,7 +22,7 @@ export function getQueryPageList(queryParams: any) { export function getQueryAccountKBList(queryParams: any) { return request({ - url: '/api/api/queryPageAccountKB', + url: '/api/queryPageAccountKB', method: 'post', data: queryParams, }); diff --git a/src/utils/storage.ts b/src/utils/storage.ts index ae528fb..e876782 100644 --- a/src/utils/storage.ts +++ b/src/utils/storage.ts @@ -23,7 +23,7 @@ export const localStorage = { }; export const localStorageTime = { - setExpires(key: string, val: any, expires: number) { + setExpires(key: string, val: any, expires: number = 120) { const storage = { value:val, expires: expires ? new Date().getTime() + expires * 60 * 1000 : new Date().getTime() + 8 * 60 * 60 * 1000 diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 342bbea..95112f4 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -41,6 +41,7 @@