@dlzn-ui/vite-config 2.0.59 → 2.0.61
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/index.mjs +6 -5
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -275,10 +275,10 @@ function toFolderAlias(routers) {
|
|
|
275
275
|
const result = {};
|
|
276
276
|
const walk = (items, level = 0) => {
|
|
277
277
|
for (const item of items) {
|
|
278
|
-
const
|
|
279
|
-
if (
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
278
|
+
const component = item.component;
|
|
279
|
+
if (!SKIP_COMPONENTS.has(component)) {
|
|
280
|
+
const title = item.meta.title;
|
|
281
|
+
if (title !== "") {
|
|
282
282
|
result[`src/views/${component.split("___")[0]}.vue`] = { description: title };
|
|
283
283
|
const arr = component.split("/");
|
|
284
284
|
arr.forEach((_, index) => {
|
|
@@ -404,7 +404,7 @@ const index = (_env, options) => {
|
|
|
404
404
|
VITE_BASE_URL = "/",
|
|
405
405
|
VITE_FORCE_PWD_CHANGE = true,
|
|
406
406
|
VITE_PROXY_TARGET: viteProxyTarget,
|
|
407
|
-
VITE_SHOW_LOGIN_LOGO =
|
|
407
|
+
VITE_SHOW_LOGIN_LOGO = false,
|
|
408
408
|
VITE_USE_LOGIN_CAPTCHA = true,
|
|
409
409
|
VITE_USER_PHONE_REQUIRED = true
|
|
410
410
|
} = env;
|
|
@@ -455,6 +455,7 @@ const index = (_env, options) => {
|
|
|
455
455
|
VITE_APP_NAME: JSON.stringify(VITE_APP_NAME),
|
|
456
456
|
VITE_BASE_URL: JSON.stringify(VITE_BASE_URL),
|
|
457
457
|
VITE_FORCE_PWD_CHANGE: JSON.stringify(VITE_FORCE_PWD_CHANGE),
|
|
458
|
+
VITE_MODE: JSON.stringify(mode),
|
|
458
459
|
VITE_SHOW_LOGIN_LOGO: JSON.stringify(VITE_SHOW_LOGIN_LOGO),
|
|
459
460
|
VITE_USE_LOGIN_CAPTCHA: JSON.stringify(VITE_USE_LOGIN_CAPTCHA),
|
|
460
461
|
VITE_USER_PHONE_REQUIRED: JSON.stringify(VITE_USER_PHONE_REQUIRED)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dlzn-ui/vite-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.61",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"vite-plugin-html": "^3.2.2",
|
|
37
37
|
"vite-plugin-vue-tailwind-auto-reference": "^2.0.2",
|
|
38
38
|
"vue-router": "^5.2.0",
|
|
39
|
-
"@dlzn-ui/node-utils": "2.0.
|
|
39
|
+
"@dlzn-ui/node-utils": "2.0.61"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"rimraf": "^6.1.3",
|