保存进度!

This commit is contained in:
2023-03-02 16:59:48 +08:00
parent 554bb14c36
commit 1ef1329495
11 changed files with 4996 additions and 4694 deletions

View File

@@ -0,0 +1,30 @@
/*
* @Author: Kane
* @Date: 2023-03-02 14:48:35
* @LastEditors: Kane
* @FilePath: /task_schedule/src/utils/account.ts
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
import { service as instance } from "@/utils/api/request";
import { API_URL } from "@/utils/api/config";
interface LoginInfo
{
account: string;
password: string;
}
function login(data: LoginInfo)
{
return instance.request(
{
method: "post",
url: API_URL.URL_LOGIN,
data: data,
}
);
}
export { LoginInfo, login };

View 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,
};

View File

@@ -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)
{