ui-process-h5 0.1.30 → 0.1.31
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
CHANGED
|
@@ -7,12 +7,13 @@ import axios, {
|
|
|
7
7
|
import { ACCESS_TOKEN, loadStorage } from "./cache";
|
|
8
8
|
|
|
9
9
|
const host = process.env.VUE_APP_BASE_URL;
|
|
10
|
+
const base = process.env.VUE_APP_BASE_API;
|
|
10
11
|
// const host = "http://59.53.91.231:2106";
|
|
11
12
|
|
|
12
13
|
axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
|
|
13
14
|
|
|
14
15
|
const opts = {
|
|
15
|
-
baseURL: host
|
|
16
|
+
baseURL: `${host}${base}`,
|
|
16
17
|
timeout: 999999999,
|
|
17
18
|
errorTip: true,
|
|
18
19
|
transformResponse: [
|
package/packages/index.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { App } from "vue";
|
|
1
|
+
import { App } from "vue-demi";
|
|
2
2
|
import components from "./component";
|
|
3
3
|
|
|
4
4
|
// 完整引入组件
|
|
5
|
-
const install = function (app: App) {
|
|
5
|
+
/* const install = function (app: App) {
|
|
6
6
|
components.forEach((component) => {
|
|
7
7
|
app.use((component as unknown) as { install: () => any });
|
|
8
8
|
});
|
|
9
|
-
};
|
|
9
|
+
}; */
|
|
10
10
|
|
|
11
11
|
// 所有组件
|
|
12
|
-
export
|
|
13
|
-
export default {
|
|
14
|
-
install,
|
|
15
|
-
};
|
|
12
|
+
export default components;
|