feat: 初始提交
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// 配置插件
|
||||
import dayjs from "dayjs"
|
||||
|
||||
import duration from "dayjs/plugin/duration"
|
||||
dayjs.extend(duration)
|
||||
|
||||
// 配置语言
|
||||
import "dayjs/locale/zh-cn"
|
||||
dayjs.locale("zh-cn")
|
||||
|
||||
console.log("Global Dayjs plugins initialised.")
|
||||
@@ -0,0 +1,17 @@
|
||||
import { type Configuration, PublicClientApplication } from "@azure/msal-browser"
|
||||
|
||||
const clientId = import.meta.env.VITE_MSAL_CLIENT_ID
|
||||
const tenantId = import.meta.env.VITE_MSAL_TENANT_ID
|
||||
|
||||
const msalConfig: Configuration = {
|
||||
auth: {
|
||||
clientId,
|
||||
authority: `https://login.microsoftonline.com/${tenantId}`,
|
||||
redirectUri: "http://localhost:5173"
|
||||
},
|
||||
cache: {
|
||||
cacheLocation: "localStorage",
|
||||
}
|
||||
}
|
||||
|
||||
export const msalInstance = new PublicClientApplication(msalConfig)
|
||||
Reference in New Issue
Block a user