保存进度!
This commit is contained in:
12
code/web/task_schedule/src/utils/api/config.ts
Normal file
12
code/web/task_schedule/src/utils/api/config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* @Author: Kane
|
||||
* @Date: 2023-03-02 15:35:43
|
||||
* @LastEditors: Kane
|
||||
* @FilePath: /deskop_task_schedule/code/web/task_schedule/src/utils/api/config.js
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
export const API_URL = {
|
||||
URL_LOGIN: import.meta.env.VITE_URL_LOGIN,
|
||||
};
|
@@ -19,7 +19,7 @@ function loadStaffInfo(): StuffInfo
|
||||
|
||||
try
|
||||
{
|
||||
obj = JSON.parse(window.localStorage.getItem(STUFF_ITEM));
|
||||
obj = JSON.parse(window.localStorage.getItem(STUFF_ITEM) || "{}");
|
||||
}
|
||||
catch (error)
|
||||
{
|
||||
|
Reference in New Issue
Block a user