@utogether/udp-core 1.0.1-beta.13 → 1.0.1-beta.14
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/dist/{403-CYdgejwn.js → 403-pRpb9luy.js} +1 -1
- package/dist/{404-CblgDc5z.js → 404-Bsowhpja.js} +1 -1
- package/dist/{500-BZ6wCwWc.js → 500-DZuJN9lQ.js} +1 -1
- package/dist/{AuthorityInfo-C7ssheq6.js → AuthorityInfo-DsSMdxQ1.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DiFYQyk8.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DCRZ7hKU.js} +1 -1
- package/dist/{Company-ECS1Fe1S.js → Company-JFHxazkc.js} +3 -3
- package/dist/{CompanyPanel-Bka7k-uP.js → CompanyPanel-Bt-5OX8x.js} +1 -1
- package/dist/{Department-DGKkYUdS.js → Department-B1bTl93X.js} +3 -3
- package/dist/{DepartmentPanel-C17CZmjl.js → DepartmentPanel-CVIvI8sf.js} +1 -1
- package/dist/{DesignPanel-BWvmkPpc.js → DesignPanel-snVLq3Gi.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-CIrAgdYO.js → DesignPanel.vue_vue_type_style_index_0_lang-Cvb54DDl.js} +2 -2
- package/dist/{DictView-B969z8wA.js → DictView-OoNA8vMb.js} +1 -1
- package/dist/{InvOrganization-6bVuN-NP.js → InvOrganization-CINznAuo.js} +1 -1
- package/dist/{Org-kNkuyf89.js → Org-BA3ZHIpa.js} +1 -1
- package/dist/{Preview-CNn9UAsy.js → Preview-C9rFs95x.js} +1 -1
- package/dist/{ReportDefine-Cjv4aRVy.js → ReportDefine-D2CXXxZp.js} +1 -1
- package/dist/{ReportDesign-BrCobVSd.js → ReportDesign-DWmFLxO_.js} +2 -2
- package/dist/{ReportQuery-Gr87UX2I.js → ReportQuery-BBMEls-l.js} +1 -1
- package/dist/{ReportQueryFrom-CX6cb9GY.js → ReportQueryFrom-CIeGY6UD.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Dz3ZapUS.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-qtLKZPIW.js} +1 -1
- package/dist/{ReportTemplate-BDRw8aY4.js → ReportTemplate-CWxGNxLg.js} +1 -1
- package/dist/{Role-B2uHACAG.js → Role-CF93718B.js} +3 -3
- package/dist/{RoleAssign-Cpwz3ZND.js → RoleAssign-BjoNSr6O.js} +3 -3
- package/dist/{RolePanel-CHlQBMqq.js → RolePanel-DmQaKkm5.js} +1 -1
- package/dist/{RolePanel-0G7e5LC8.js → RolePanel-qBGK6Ilt.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Cuyr3Z0F.js → RolePanel.vue_vue_type_script_setup_true_lang-BeNdAkYp.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-C_vBaRyr.js → RolePanel.vue_vue_type_script_setup_true_lang-DdK59XHp.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-B_W_v3j5.js → ScrollPanel.vue_vue_type_style_index_0_lang-LU6W_QVY.js} +1 -1
- package/dist/{Staff-BALciFZu.js → Staff-BrjfdZU2.js} +3 -3
- package/dist/{StaffInfo-BNzGN-gJ.js → StaffInfo-DYmftNDC.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BSYVizqX.js → StaffInfo.vue_vue_type_script_setup_true_lang-DVLhL8tz.js} +1 -1
- package/dist/{StaffPanel-xWUgRJqR.js → StaffPanel-DJERIwT_.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-duZSwgoN.js → StaffPanel.vue_vue_type_script_setup_true_lang-D_leV5A8.js} +2 -2
- package/dist/{SysUser-q114FdeD.js → SysUser-WO0whf-F.js} +2 -2
- package/dist/{SysUserPanel-CognKMl5.js → SysUserPanel-C64mSt4O.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-CMbUdk6A.js → SysUserPanel.vue_vue_type_script_setup_true_lang-B19FuxOZ.js} +1 -1
- package/dist/{SystemMenu-DVGGSkBO.js → SystemMenu-CY1EDfzl.js} +2 -2
- package/dist/{UserInfo-Dug8S6IS.js → UserInfo-DWXmMOD1.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-GUvWUfH6.js → UserInfo.vue_vue_type_style_index_0_lang-pjHVXRtK.js} +1 -1
- package/dist/{childView-DC4St5Yu.js → childView-CMBPpTyj.js} +1 -1
- package/dist/{childView-DgwW1_pS.js → childView-Czd4yk_A.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-C6ns1H7X.js → childView.vue_vue_type_style_index_0_lang-C9wXL52o.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CHB4aljD.js → childView.vue_vue_type_style_index_0_lang-CaMQbFZm.js} +1 -1
- package/dist/{code-rule-DrnZAXq6.js → code-rule-kHfdPgGA.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-8TSn9qgc.js → cron-task-D1bbdvVP.js} +1 -1
- package/dist/{frameView-DsJ7Niwn.js → frameView-B5JStsSt.js} +1 -1
- package/dist/{index-ChmJT--N.js → index-Ce51XQgg.js} +44 -44
- package/dist/{layoutView-JchyMwjZ.js → layoutView-DR39l27s.js} +2 -2
- package/dist/{login-BXkivLFZ.js → login-d5LMP32l.js} +21 -21
- package/dist/{lov-view-Ck-gMZAO.js → lov-view-wdnYE7wy.js} +2 -2
- package/dist/{menuInfo-u432VWl_.js → menuInfo-D0746839.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-JMkwMJ9n.js → menuInfo.vue_vue_type_style_index_0_lang-p_yYtGl2.js} +1 -1
- package/dist/{pda-app-BeqyF-LQ.js → pda-app-zzzZfBj5.js} +1 -1
- package/dist/{resource-DkNbG8D8.js → resource-B7wnjBVW.js} +1 -1
- package/dist/{su-welcome-DEVHyaQ4.js → su-welcome-CeajjyWS.js} +1 -1
- package/dist/{sys-config-8MIo11zU.js → sys-config-CpfSg66g.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/dist/{utogether-N0mpFm7j.js → utogether-B_dUqXea.js} +1 -1
- package/package.json +1 -1
- package/src/main.ts +113 -113
- package/src/views/ulogin/login.vue +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as W, ref as L } from "vue";
|
|
2
2
|
import { useGlobal as g, storageLocal as u, deviceDetection as H, cookies as C, storageSession as M } from "@utogether/utils";
|
|
3
|
-
import { y as P, j as E, s as j, g as h, v as d, z as J, l as K, m as R, n as V, u as S, r as G, o as O, A as x, B as Z } from "./index-
|
|
3
|
+
import { y as P, j as E, s as j, g as h, v as d, z as J, l as K, m as R, n as V, u as S, r as G, o as O, A as x, B as Z } from "./index-Ce51XQgg.js";
|
|
4
4
|
import { useI18n as f } from "vue-i18n";
|
|
5
5
|
import { defineStore as v } from "pinia";
|
|
6
6
|
function I() {
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: levi7754 levi7754@163.com
|
|
3
|
-
* @Date: 2025-07-25 13:38:20
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-09-05 13:48:25
|
|
6
|
-
* @FilePath: \udp-front\packages\udp-core\src\main.ts
|
|
7
|
-
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
-
*/
|
|
9
|
-
import { createApp, type Directive } from 'vue';
|
|
10
|
-
import App from './App.vue';
|
|
11
|
-
// import router from './router';
|
|
12
|
-
import { setViews } from './router';
|
|
13
|
-
import { setupStore } from './store';
|
|
14
|
-
import { setConfig, setSystemEnv } from './config';
|
|
15
|
-
import { useI18n } from '../src/plugins/i18n';
|
|
16
|
-
import { setTableConfig } from '../src/plugins/vxe-table';
|
|
17
|
-
import { injectResponsiveStorage } from './utils/storage';
|
|
18
|
-
import hasAuthority from './utils/authority';
|
|
19
|
-
import { getServiceApi, getBaseURL, setRouter, setBaseUrl } from './api';
|
|
20
|
-
|
|
21
|
-
import 'nprogress/nprogress.css';
|
|
22
|
-
// 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
|
|
23
|
-
import './style/tailwind.css';
|
|
24
|
-
// // 引入重置样式
|
|
25
|
-
import './style/reset.scss';
|
|
26
|
-
// 导入公共样式
|
|
27
|
-
import './style/index.scss';
|
|
28
|
-
|
|
29
|
-
import 'viewerjs/dist/viewer.css';
|
|
30
|
-
|
|
31
|
-
import VueViewer from 'v-viewer';
|
|
32
|
-
|
|
33
|
-
// import SuTable from './components/SuTable/SuTable.vue';
|
|
34
|
-
|
|
35
|
-
// import {
|
|
36
|
-
// UtButton,
|
|
37
|
-
// utLov2,
|
|
38
|
-
// UGrid,
|
|
39
|
-
// UtDivider,
|
|
40
|
-
// UtModalForm2
|
|
41
|
-
// FormUpload2,
|
|
42
|
-
// UtForm2
|
|
43
|
-
// UtGrid2
|
|
44
|
-
// UtContent,
|
|
45
|
-
// UtModalGrid2
|
|
46
|
-
// UtUpload2
|
|
47
|
-
// UtIconSelect,
|
|
48
|
-
// UtCalendar
|
|
49
|
-
// uAttachment
|
|
50
|
-
// } from './components/udp';
|
|
51
|
-
|
|
52
|
-
const app = createApp(App);
|
|
53
|
-
|
|
54
|
-
// 全局注册`@iconify/vue`图标库
|
|
55
|
-
import { IconifyIconOffline, FontIcon } from './components/ReIcon';
|
|
56
|
-
// 全局注册`vue-tippy`
|
|
57
|
-
import 'tippy.js/dist/tippy.css';
|
|
58
|
-
import 'tippy.js/animations/perspective.css';
|
|
59
|
-
import VueTippy from 'vue-tippy';
|
|
60
|
-
|
|
61
|
-
app.use(VueTippy, {
|
|
62
|
-
defaultProps: { animation: 'perspective' }
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
// 自定义指令
|
|
66
|
-
import * as directives from './directives';
|
|
67
|
-
|
|
68
|
-
const setGlobal = app => {
|
|
69
|
-
app.config.globalProperties.$hasAuthority = hasAuthority;
|
|
70
|
-
app.config.globalProperties.$serviceApi = getServiceApi();
|
|
71
|
-
app.config.globalProperties.$url = getBaseURL();
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const setGlobalDirective = app => {
|
|
75
|
-
Object.keys(directives).forEach(key => {
|
|
76
|
-
app.directive(key, (directives as { [key: string]: Directive })[key]);
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const init = ({ router, config, lang, views, env, tableConfig }) => {
|
|
81
|
-
setViews(views, router);
|
|
82
|
-
app.use(router);
|
|
83
|
-
setRouter(router);
|
|
84
|
-
setConfig(app, config);
|
|
85
|
-
setSystemEnv(env);
|
|
86
|
-
setTableConfig(tableConfig);
|
|
87
|
-
return new Promise(resolve => {
|
|
88
|
-
useI18n(app, lang);
|
|
89
|
-
app.component('IconifyIconOffline', IconifyIconOffline);
|
|
90
|
-
app.component('FontIcon', FontIcon);
|
|
91
|
-
// app.component('uAttachment', uAttachment).component('UGrid', UGrid);
|
|
92
|
-
// .component('UtDivider', UtDivider)
|
|
93
|
-
// app.component('UtModalForm2', UtModalForm2);
|
|
94
|
-
// app.component('UtGrid2', UtGrid2);
|
|
95
|
-
// app.component('UtForm2', UtForm2);
|
|
96
|
-
// app.component('UtModalGrid2', UtModalGrid2);
|
|
97
|
-
// .component('UtIconSelect', UtIconSelect)
|
|
98
|
-
// app.component('FormUpload2', FormUpload2);
|
|
99
|
-
// .component('UtCalendar', UtCalendar)
|
|
100
|
-
// .component('UtModalGrid', UtModalGrid);
|
|
101
|
-
app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
|
|
102
|
-
setGlobal(app);
|
|
103
|
-
setBaseUrl(getBaseURL());
|
|
104
|
-
setGlobalDirective(app);
|
|
105
|
-
// 全局组件
|
|
106
|
-
setupStore(app);
|
|
107
|
-
injectResponsiveStorage(app, config);
|
|
108
|
-
const result = { app, router };
|
|
109
|
-
resolve(result);
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
export default init;
|
|
1
|
+
/*
|
|
2
|
+
* @Author: levi7754 levi7754@163.com
|
|
3
|
+
* @Date: 2025-07-25 13:38:20
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-09-05 13:48:25
|
|
6
|
+
* @FilePath: \udp-front\packages\udp-core\src\main.ts
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
*/
|
|
9
|
+
import { createApp, type Directive } from 'vue';
|
|
10
|
+
import App from './App.vue';
|
|
11
|
+
// import router from './router';
|
|
12
|
+
import { setViews } from './router';
|
|
13
|
+
import { setupStore } from './store';
|
|
14
|
+
import { setConfig, setSystemEnv } from './config';
|
|
15
|
+
import { useI18n } from '../src/plugins/i18n';
|
|
16
|
+
import { setTableConfig } from '../src/plugins/vxe-table';
|
|
17
|
+
import { injectResponsiveStorage } from './utils/storage';
|
|
18
|
+
import hasAuthority from './utils/authority';
|
|
19
|
+
import { getServiceApi, getBaseURL, setRouter, setBaseUrl } from './api';
|
|
20
|
+
|
|
21
|
+
import 'nprogress/nprogress.css';
|
|
22
|
+
// 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
|
|
23
|
+
import './style/tailwind.css';
|
|
24
|
+
// // 引入重置样式
|
|
25
|
+
import './style/reset.scss';
|
|
26
|
+
// 导入公共样式
|
|
27
|
+
import './style/index.scss';
|
|
28
|
+
|
|
29
|
+
import 'viewerjs/dist/viewer.css';
|
|
30
|
+
|
|
31
|
+
import VueViewer from 'v-viewer';
|
|
32
|
+
|
|
33
|
+
// import SuTable from './components/SuTable/SuTable.vue';
|
|
34
|
+
|
|
35
|
+
// import {
|
|
36
|
+
// UtButton,
|
|
37
|
+
// utLov2,
|
|
38
|
+
// UGrid,
|
|
39
|
+
// UtDivider,
|
|
40
|
+
// UtModalForm2
|
|
41
|
+
// FormUpload2,
|
|
42
|
+
// UtForm2
|
|
43
|
+
// UtGrid2
|
|
44
|
+
// UtContent,
|
|
45
|
+
// UtModalGrid2
|
|
46
|
+
// UtUpload2
|
|
47
|
+
// UtIconSelect,
|
|
48
|
+
// UtCalendar
|
|
49
|
+
// uAttachment
|
|
50
|
+
// } from './components/udp';
|
|
51
|
+
|
|
52
|
+
const app = createApp(App);
|
|
53
|
+
|
|
54
|
+
// 全局注册`@iconify/vue`图标库
|
|
55
|
+
import { IconifyIconOffline, FontIcon } from './components/ReIcon';
|
|
56
|
+
// 全局注册`vue-tippy`
|
|
57
|
+
import 'tippy.js/dist/tippy.css';
|
|
58
|
+
import 'tippy.js/animations/perspective.css';
|
|
59
|
+
import VueTippy from 'vue-tippy';
|
|
60
|
+
|
|
61
|
+
app.use(VueTippy, {
|
|
62
|
+
defaultProps: { animation: 'perspective' }
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
// 自定义指令
|
|
66
|
+
import * as directives from './directives';
|
|
67
|
+
|
|
68
|
+
const setGlobal = app => {
|
|
69
|
+
app.config.globalProperties.$hasAuthority = hasAuthority;
|
|
70
|
+
app.config.globalProperties.$serviceApi = getServiceApi();
|
|
71
|
+
app.config.globalProperties.$url = getBaseURL();
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const setGlobalDirective = app => {
|
|
75
|
+
Object.keys(directives).forEach(key => {
|
|
76
|
+
app.directive(key, (directives as { [key: string]: Directive })[key]);
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const init = ({ router, config, lang, views, env, tableConfig }) => {
|
|
81
|
+
setViews(views, router);
|
|
82
|
+
app.use(router);
|
|
83
|
+
setRouter(router);
|
|
84
|
+
setConfig(app, config);
|
|
85
|
+
setSystemEnv(env);
|
|
86
|
+
setTableConfig(tableConfig);
|
|
87
|
+
return new Promise(resolve => {
|
|
88
|
+
useI18n(app, lang);
|
|
89
|
+
app.component('IconifyIconOffline', IconifyIconOffline);
|
|
90
|
+
app.component('FontIcon', FontIcon);
|
|
91
|
+
// app.component('uAttachment', uAttachment).component('UGrid', UGrid);
|
|
92
|
+
// .component('UtDivider', UtDivider)
|
|
93
|
+
// app.component('UtModalForm2', UtModalForm2);
|
|
94
|
+
// app.component('UtGrid2', UtGrid2);
|
|
95
|
+
// app.component('UtForm2', UtForm2);
|
|
96
|
+
// app.component('UtModalGrid2', UtModalGrid2);
|
|
97
|
+
// .component('UtIconSelect', UtIconSelect)
|
|
98
|
+
// app.component('FormUpload2', FormUpload2);
|
|
99
|
+
// .component('UtCalendar', UtCalendar)
|
|
100
|
+
// .component('UtModalGrid', UtModalGrid);
|
|
101
|
+
app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
|
|
102
|
+
setGlobal(app);
|
|
103
|
+
setBaseUrl(getBaseURL());
|
|
104
|
+
setGlobalDirective(app);
|
|
105
|
+
// 全局组件
|
|
106
|
+
setupStore(app);
|
|
107
|
+
injectResponsiveStorage(app, config);
|
|
108
|
+
const result = { app, router };
|
|
109
|
+
resolve(result);
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export default init;
|
|
@@ -237,8 +237,8 @@ const cacheToken = token => {
|
|
|
237
237
|
const cache = {
|
|
238
238
|
accessToken: access_token,
|
|
239
239
|
refreshToken: refresh_token,
|
|
240
|
-
expires: Date.now() + expires_in
|
|
241
|
-
|
|
240
|
+
// expires: Date.now() + expires_in
|
|
241
|
+
expires: Date.now() + expires_in * 1000
|
|
242
242
|
};
|
|
243
243
|
|
|
244
244
|
cookies.set(kCKTOKEN, token.access_token);
|