mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-10 20:02:54 +00:00
添加 unix 纯净版模式
This commit is contained in:
parent
83360678c2
commit
798ecc7304
1
packages/vite-plugin/dist/config.d.ts
vendored
1
packages/vite-plugin/dist/config.d.ts
vendored
@ -31,4 +31,5 @@ export declare const config: {
|
||||
rpxRatio: number;
|
||||
darkTextClass: string;
|
||||
};
|
||||
clean: boolean;
|
||||
};
|
||||
|
||||
7
packages/vite-plugin/dist/index.js
vendored
7
packages/vite-plugin/dist/index.js
vendored
@ -56,6 +56,7 @@
|
||||
rpxRatio: 2,
|
||||
darkTextClass: "dark:text-surface-50",
|
||||
},
|
||||
clean: false,
|
||||
};
|
||||
|
||||
// 根目录
|
||||
@ -2407,6 +2408,12 @@ if (typeof window !== 'undefined') {
|
||||
config.type = options.type;
|
||||
// 请求地址
|
||||
config.reqUrl = getProxyTarget(options.proxy);
|
||||
// 是否纯净版
|
||||
config.clean = options.clean;
|
||||
if (config.clean) {
|
||||
// 默认设置为测试地址
|
||||
config.reqUrl = "https://show.cool-admin.com/api";
|
||||
}
|
||||
// 是否开启名称标签
|
||||
config.nameTag = options.nameTag ?? true;
|
||||
// svg
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cool-vue/vite-plugin",
|
||||
"version": "8.2.5",
|
||||
"version": "8.2.6",
|
||||
"description": "cool-admin、cool-uni builder",
|
||||
"types": "./dist/index.d.ts",
|
||||
"main": "/dist/index.js",
|
||||
|
||||
@ -53,4 +53,5 @@ export const config = {
|
||||
rpxRatio: 2,
|
||||
darkTextClass: "dark:text-surface-50",
|
||||
},
|
||||
clean: false,
|
||||
};
|
||||
|
||||
@ -14,6 +14,14 @@ export function cool(options: Config.Options) {
|
||||
// 请求地址
|
||||
config.reqUrl = getProxyTarget(options.proxy);
|
||||
|
||||
// 是否纯净版
|
||||
config.clean = options.clean;
|
||||
|
||||
if (config.clean) {
|
||||
// 默认设置为测试地址
|
||||
config.reqUrl = "https://show.cool-admin.com/api";
|
||||
}
|
||||
|
||||
// 是否开启名称标签
|
||||
config.nameTag = options.nameTag ?? true;
|
||||
|
||||
|
||||
2
packages/vite-plugin/types/index.d.ts
vendored
2
packages/vite-plugin/types/index.d.ts
vendored
@ -119,5 +119,7 @@ export declare namespace Config {
|
||||
// 暗黑模式文本类名
|
||||
darkTextClass?: string;
|
||||
};
|
||||
// 是否纯净版
|
||||
clean: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user