@hlw-uni/mp-cli 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/mp-toutiao/base/src/App.vue +1 -0
- package/templates/mp-toutiao/base/src/main.ts +2 -3
- package/templates/mp-toutiao/base/src/pages.json +1 -1
- package/templates/mp-toutiao/base/src/static/style/style.scss +4 -0
- package/templates/mp-toutiao/base/src/uni.scss +1 -1
- package/templates/mp-weixin/base/src/App.vue +1 -0
- package/templates/mp-weixin/base/src/main.ts +2 -3
- package/templates/mp-weixin/base/src/pages.json +1 -1
- package/templates/mp-weixin/base/src/static/style/style.scss +4 -0
- package/templates/mp-weixin/base/src/uni.scss +1 -1
package/package.json
CHANGED
|
@@ -7,13 +7,12 @@ import { useUserStore } from "./store";
|
|
|
7
7
|
|
|
8
8
|
// 注册默认拦截器(Token + 业务错误 + 401)
|
|
9
9
|
setupDefaultInterceptors({
|
|
10
|
-
baseURL:
|
|
10
|
+
baseURL: import.meta.env.VITE_API_BASE_URL,
|
|
11
11
|
getToken: () => useUserStore().token,
|
|
12
12
|
onUnauthorized: () => {
|
|
13
13
|
useUserStore().$patch({ token: "", userInfo: null });
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
sigSecret: (import.meta.env as Record<string, string>).VITE_SIG_SECRET ?? "",
|
|
15
|
+
sigSecret: import.meta.env.VITE_SIG_SECRET,
|
|
17
16
|
});
|
|
18
17
|
|
|
19
18
|
export function createApp() {
|
|
@@ -7,13 +7,12 @@ import { useUserStore } from "./store";
|
|
|
7
7
|
|
|
8
8
|
// 注册默认拦截器(Token + 业务错误 + 401)
|
|
9
9
|
setupDefaultInterceptors({
|
|
10
|
-
baseURL:
|
|
10
|
+
baseURL: import.meta.env.VITE_API_BASE_URL,
|
|
11
11
|
getToken: () => useUserStore().token,
|
|
12
12
|
onUnauthorized: () => {
|
|
13
13
|
useUserStore().$patch({ token: "", userInfo: null });
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
sigSecret: (import.meta.env as Record<string, string>).VITE_SIG_SECRET ?? "",
|
|
15
|
+
sigSecret: import.meta.env.VITE_SIG_SECRET,
|
|
17
16
|
});
|
|
18
17
|
|
|
19
18
|
export function createApp() {
|