ui-process-h5 0.1.15 → 0.1.20

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.
@@ -7,6 +7,7 @@ import axios, {
7
7
  import { ACCESS_TOKEN, loadStorage } from "./cache";
8
8
 
9
9
  const host = process.env.VUE_APP_BASE_URL;
10
+ // const host = "http://59.53.91.230:8102";
10
11
 
11
12
  axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
12
13
 
@@ -28,11 +29,13 @@ const opts = {
28
29
 
29
30
  const service = axios.create(opts);
30
31
 
31
- service.interceptors.request.use((config) => {
32
+ service.interceptors.request.use((config)=> {
32
33
  const isToken = (config.headers || {}).isToken === false;
33
34
  if (loadStorage("token", "") && !isToken) {
34
- config.headers["Authorization"] = "Bearer " + loadStorage("token", ""); // 让每个请求携带自定义token 请根据实际情况自行修改
35
+ config.headers["Authorization"] = "Bearer " + loadStorage("token", ""); // 让每个请求携带自定义token 请根据实际情况自行修改 15c572f2-1fff-4ef2-94dc-728fc8d6fe14
35
36
  }
37
+ config.headers["Authorization"] =
38
+ "Bearer " + "15c572f2-1fff-4ef2-94dc-728fc8d6fe14";
36
39
  return config;
37
40
  });
38
41
 
@@ -0,0 +1,15 @@
1
+ import { App } from "vue";
2
+ import components from "./component";
3
+
4
+ // 完整引入组件
5
+ const install = function (app: App) {
6
+ components.forEach((component) => {
7
+ app.use((component as unknown) as { install: () => any });
8
+ });
9
+ };
10
+
11
+ // 所有组件
12
+ export * from "./component";
13
+ export default {
14
+ install,
15
+ };
@@ -1,2 +0,0 @@
1
- import Tab from "./src/tab.vue";
2
- export default Tab;
@@ -1,28 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- props: {
4
- /**
5
- * 根据参数插入自定义tab
6
- * label:选项卡title
7
- * key:选项卡ID 请勿重复defaultTabList内已拥有的默认key
8
- * type:插槽类型 "slot" "default"
9
- * sort:排序参数,无参数默认插入末尾
10
- * slot:插槽name
11
- */
12
- tapList: {
13
- type: ArrayConstructor;
14
- default: () => never[];
15
- };
16
- selfTapList: {
17
- type: ArrayConstructor;
18
- default: () => never[];
19
- };
20
- };
21
- setup(props: any): {
22
- isTapList: any;
23
- active: import("vue").Ref<string>;
24
- handleActive: (e: string, i: number) => void;
25
- label: import("vue").Ref<any>;
26
- };
27
- };
28
- export default _default;