This repository was archived by the owner on Apr 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathuseConfig.ts
32 lines (31 loc) · 1.85 KB
/
useConfig.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
export const useConfig = defineStore('config', {
state: () => ({
MySqlConfig: {
"pan": {
host: 'localhost', // 数据库地址
user: 'root', // 数据库用户名
password: '123456', // 数据库密码
database: 'pan', // 数据库名
timezone: "08:00", // 时区
},
"game": {
host: 'localhost', // 数据库地址
user: 'root', // 数据库用户名
password: '123456', // 数据库密码
database: 'game', // 数据库名
timezone: "08:00", // 时区
}
},
token: {
// scopes:'Files.ReadWrite.All profile openid email', // 请求的范围
scopes: ['Files.ReadWrite.All', 'Files.Read.All', 'User.Read', 'offline_access'], // 请求的范围
clientId: "9ed0b3ca-497d-43b4-a693-1506e19ee3ef", // 应用程序的 clientId
clientSecret: "MCf8Q~460v2bWba2ge8qIjTSiziGYzOOyUib.aOk",// 应用程序的 clientSecret
authority: "https://login.microsoftonline.com/common", // 应用程序的 authority
redirectUri: "http://localhost:3001/init/redirect", // 应用程序的 redirectUri
accessToken: "", // 应用程序的 accessToken
},
configName: "pan" as 'pan' | 'game',
onedrive_root: "/public"
})
})