mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c288d438dc | ||
|
|
94f72cd6d9 | ||
|
|
307944cdb5 | ||
|
|
f5a75356df | ||
|
|
54ebd19875 | ||
|
|
303fc25af3 | ||
|
|
a455072d7a | ||
|
|
2bbf04b191 | ||
|
|
e4c33a7d22 | ||
|
|
6765ce8644 |
@@ -8,4 +8,12 @@ VITE_ROUTER_HISTORY = "hash"
|
||||
VITE_PROXY_DOMAIN_REAL = ""
|
||||
|
||||
# 是否为打包后的文件提供传统浏览器兼容性支持 支持 true 不支持 false
|
||||
VITE_LEGACY = false
|
||||
VITE_LEGACY = false
|
||||
|
||||
# 是否在打包时使用cdn替换本地库 替换 true 不替换 false
|
||||
VITE_CDN = false
|
||||
|
||||
# 是否启用gzip压缩或brotli压缩(分两种情况,删除原始文件和不删除原始文件)
|
||||
# 压缩时不删除原始文件的配置:gzip、brotli、both(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认)
|
||||
# 压缩时删除原始文件的配置:gzip-clear、brotli-clear、both-clear(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认)
|
||||
VITE_COMPRESSION = "none"
|
||||
@@ -12,3 +12,11 @@ VITE_PROXY_DOMAIN_REAL = ""
|
||||
|
||||
# 是否为打包后的文件提供传统浏览器兼容性支持 支持 true 不支持 false
|
||||
VITE_LEGACY = false
|
||||
|
||||
# 是否在打包时使用cdn替换本地库 替换 true 不替换 false
|
||||
VITE_CDN = false
|
||||
|
||||
# 是否启用gzip压缩或brotli压缩(分两种情况,删除原始文件和不删除原始文件)
|
||||
# 压缩时不删除原始文件的配置:gzip、brotli、both(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认)
|
||||
# 压缩时删除原始文件的配置:gzip-clear、brotli-clear、both-clear(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认)
|
||||
VITE_COMPRESSION = "none"
|
||||
2
.github/workflows/gitee.yml
vendored
2
.github/workflows/gitee.yml
vendored
@@ -4,7 +4,7 @@ permissions:
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- gitee
|
||||
- master
|
||||
jobs:
|
||||
deploy:
|
||||
concurrency: ci-${{ github.ref }}
|
||||
|
||||
@@ -1,3 +1,25 @@
|
||||
# 3.6.2 (2022-10-27)
|
||||
|
||||
### ✔️ refactor
|
||||
|
||||
- Replace `/@/` alias with `@/` alias
|
||||
|
||||
# 3.6.1 (2022-10-27)
|
||||
|
||||
### 🎫 Feat
|
||||
|
||||
- Add whether to start `cdn` for packaging to replace the local library configuration, the default `false` does not start
|
||||
- Added optional `gzip` and `brotli` compression modes for packaging builds
|
||||
|
||||
### 🐞 Bug fixes
|
||||
|
||||
- Fix `title` too long display style problem
|
||||
- Fix the parent `name` in the route should not be repeated with the child `name`, which will cause redirection to jump `404` problem
|
||||
|
||||
### 🍏 Perf
|
||||
|
||||
- Upgrade `axios` to the latest version
|
||||
|
||||
# 3.6.0 (2022-10-25)
|
||||
|
||||
### 🎫 Feat
|
||||
|
||||
22
CHANGELOG.md
22
CHANGELOG.md
@@ -1,3 +1,25 @@
|
||||
# 3.6.2 (2022-10-27)
|
||||
|
||||
### ✔️ refactor
|
||||
|
||||
- Replace `/@/` alias with `@/` alias
|
||||
|
||||
# 3.6.1 (2022-10-27)
|
||||
|
||||
### 🎫 Feat
|
||||
|
||||
- Add whether to start `cdn` for packaging to replace the local library configuration, the default `false` does not start
|
||||
- Added optional `gzip` and `brotli` compression modes for packaging builds
|
||||
|
||||
### 🐞 Bug fixes
|
||||
|
||||
- Fix `title` too long display style problem
|
||||
- Fix the parent `name` in the route should not be repeated with the child `name`, which will cause redirection to jump `404` problem
|
||||
|
||||
### 🍏 Perf
|
||||
|
||||
- Upgrade `axios` to the latest version
|
||||
|
||||
# 3.6.0 (2022-10-25)
|
||||
|
||||
### 🎫 Feat
|
||||
|
||||
@@ -1,3 +1,25 @@
|
||||
# 3.6.2 (2022-10-27)
|
||||
|
||||
### ✔️ refactor
|
||||
|
||||
- 使用`@/`别名替换`/@/`别名
|
||||
|
||||
# 3.6.1 (2022-10-27)
|
||||
|
||||
### 🎫 Feat
|
||||
|
||||
- 添加打包是否启动`cdn`替换本地库配置,默认`false`不启动
|
||||
- 添加打包构建可选`gzip`与`brotli`压缩模式
|
||||
|
||||
### 🐞 Bug fixes
|
||||
|
||||
- 修复`title`过长显示样式问题
|
||||
- 修复路由中父级`name`不应和子级`name`重复,会造成重定向跳转`404`问题
|
||||
|
||||
### 🍏 Perf
|
||||
|
||||
- 升级`axios`至最新版
|
||||
|
||||
# 3.6.0 (2022-10-25)
|
||||
|
||||
### 🎫 Feat
|
||||
|
||||
67
build/cdn.ts
Normal file
67
build/cdn.ts
Normal file
@@ -0,0 +1,67 @@
|
||||
import { Plugin as importToCDN } from "vite-plugin-cdn-import";
|
||||
|
||||
/**
|
||||
* @description 打包时采用`cdn`模式,仅限外网使用(默认不采用,如果需要采用cdn模式,请在 .env.production 文件,将 VITE_CDN 设置成true)
|
||||
* 平台采用国内cdn:https://www.bootcdn.cn,当然你也可以选择 https://unpkg.com 或者 https://www.jsdelivr.com
|
||||
* 提醒:mockjs不能用cdn模式引入,会报错。正确的方式是,生产环境删除mockjs,使用真实的后端请求
|
||||
* 注意:上面提到的仅限外网使用也不是完全肯定的,如果你们公司内网部署的有相关js、css文件,也可以将下面配置对应改一下,整一套内网版cdn
|
||||
*/
|
||||
export const cdn = importToCDN({
|
||||
//(prodUrl解释: name: 对应下面modules的name,version: 自动读取本地package.json中dependencies依赖中对应包的版本号,path: 对应下面modules的path)
|
||||
prodUrl: "https://cdn.bootcdn.net/ajax/libs/{name}/{version}/{path}",
|
||||
modules: [
|
||||
{
|
||||
name: "vue",
|
||||
var: "Vue",
|
||||
path: "vue.global.prod.min.js"
|
||||
},
|
||||
{
|
||||
name: "vue-router",
|
||||
var: "VueRouter",
|
||||
path: "vue-router.global.min.js"
|
||||
},
|
||||
{
|
||||
name: "vue-i18n",
|
||||
var: "VueI18n",
|
||||
path: "vue-i18n.runtime.global.prod.min.js"
|
||||
},
|
||||
// 项目中没有直接安装vue-demi,但是pinia用到了,所以需要在引入pinia前引入vue-demi(https://github.com/vuejs/pinia/blob/v2/packages/pinia/package.json#L77)
|
||||
{
|
||||
name: "vue-demi",
|
||||
var: "VueDemi",
|
||||
path: "index.iife.min.js"
|
||||
},
|
||||
{
|
||||
name: "pinia",
|
||||
var: "Pinia",
|
||||
path: "pinia.iife.min.js"
|
||||
},
|
||||
{
|
||||
name: "element-plus",
|
||||
var: "ElementPlus",
|
||||
path: "index.full.min.js",
|
||||
css: "index.min.css"
|
||||
},
|
||||
{
|
||||
name: "axios",
|
||||
var: "axios",
|
||||
path: "axios.min.js"
|
||||
},
|
||||
{
|
||||
name: "dayjs",
|
||||
var: "dayjs",
|
||||
path: "dayjs.min.js"
|
||||
},
|
||||
{
|
||||
name: "echarts",
|
||||
var: "echarts",
|
||||
path: "echarts.min.js"
|
||||
},
|
||||
{
|
||||
name: "lodash",
|
||||
var: "lodash",
|
||||
// 可写`完整路径`,会替换`prodUrl`
|
||||
path: "https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.min.js"
|
||||
}
|
||||
]
|
||||
});
|
||||
63
build/compress.ts
Normal file
63
build/compress.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import type { Plugin } from "vite";
|
||||
import { isArray } from "@pureadmin/utils";
|
||||
import compressPlugin from "vite-plugin-compression";
|
||||
|
||||
export const configCompressPlugin = (
|
||||
compress: ViteCompression
|
||||
): Plugin | Plugin[] => {
|
||||
if (compress === "none") return null;
|
||||
|
||||
const gz = {
|
||||
// 生成的压缩包后缀
|
||||
ext: ".gz",
|
||||
// 体积大于threshold才会被压缩
|
||||
threshold: 0,
|
||||
// 默认压缩.js|mjs|json|css|html后缀文件,设置成true,压缩全部文件
|
||||
filter: () => true,
|
||||
// 压缩后是否删除原始文件
|
||||
deleteOriginFile: false
|
||||
};
|
||||
const br = {
|
||||
ext: ".br",
|
||||
algorithm: "brotliCompress",
|
||||
threshold: 0,
|
||||
filter: () => true,
|
||||
deleteOriginFile: false
|
||||
};
|
||||
|
||||
const codeList = [
|
||||
{ k: "gzip", v: gz },
|
||||
{ k: "brotli", v: br },
|
||||
{ k: "both", v: [gz, br] }
|
||||
];
|
||||
|
||||
const plugins: Plugin[] = [];
|
||||
|
||||
codeList.forEach(item => {
|
||||
if (compress.includes(item.k)) {
|
||||
if (compress.includes("clear")) {
|
||||
if (isArray(item.v)) {
|
||||
item.v.forEach(vItem => {
|
||||
plugins.push(
|
||||
compressPlugin(Object.assign(vItem, { deleteOriginFile: true }))
|
||||
);
|
||||
});
|
||||
} else {
|
||||
plugins.push(
|
||||
compressPlugin(Object.assign(item.v, { deleteOriginFile: true }))
|
||||
);
|
||||
}
|
||||
} else {
|
||||
if (isArray(item.v)) {
|
||||
item.v.forEach(vItem => {
|
||||
plugins.push(compressPlugin(vItem));
|
||||
});
|
||||
} else {
|
||||
plugins.push(compressPlugin(item.v));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return plugins;
|
||||
};
|
||||
@@ -7,7 +7,9 @@ const warpperEnv = (envConf: Recordable): ViteEnv => {
|
||||
VITE_PROXY_DOMAIN: "",
|
||||
VITE_PROXY_DOMAIN_REAL: "",
|
||||
VITE_ROUTER_HISTORY: "",
|
||||
VITE_LEGACY: false
|
||||
VITE_LEGACY: false,
|
||||
VITE_CDN: false,
|
||||
VITE_COMPRESSION: "none"
|
||||
};
|
||||
|
||||
for (const envName of Object.keys(envConf)) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { cdn } from "./cdn";
|
||||
import { resolve } from "path";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import { viteBuildInfo } from "./info";
|
||||
@@ -5,14 +6,20 @@ import svgLoader from "vite-svg-loader";
|
||||
import legacy from "@vitejs/plugin-legacy";
|
||||
import vueJsx from "@vitejs/plugin-vue-jsx";
|
||||
import { viteMockServe } from "vite-plugin-mock";
|
||||
import { configCompressPlugin } from "./compress";
|
||||
import VueI18n from "@intlify/vite-plugin-vue-i18n";
|
||||
import { visualizer } from "rollup-plugin-visualizer";
|
||||
import removeConsole from "vite-plugin-remove-console";
|
||||
import themePreprocessorPlugin from "@pureadmin/theme";
|
||||
import { genScssMultipleScopeVars } from "/@/layout/theme";
|
||||
import DefineOptions from "unplugin-vue-define-options/vite";
|
||||
import { genScssMultipleScopeVars } from "../src/layout/theme";
|
||||
|
||||
export function getPluginsList(command, VITE_LEGACY) {
|
||||
export function getPluginsList(
|
||||
command: string,
|
||||
VITE_LEGACY: boolean,
|
||||
VITE_CDN: boolean,
|
||||
VITE_COMPRESSION: ViteCompression
|
||||
) {
|
||||
const prodMock = true;
|
||||
const lifecycle = process.env.npm_lifecycle_event;
|
||||
return [
|
||||
@@ -25,6 +32,8 @@ export function getPluginsList(command, VITE_LEGACY) {
|
||||
}),
|
||||
// jsx、tsx语法支持
|
||||
vueJsx(),
|
||||
VITE_CDN ? cdn : null,
|
||||
configCompressPlugin(VITE_COMPRESSION),
|
||||
DefineOptions(),
|
||||
// 线上环境删除console
|
||||
removeConsole({ external: ["src/assets/iconfont/iconfont.js"] }),
|
||||
|
||||
18
package.json
18
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-pure-admin",
|
||||
"version": "3.6.0",
|
||||
"version": "3.6.2",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "NODE_OPTIONS=--max-old-space-size=4096 vite",
|
||||
@@ -36,13 +36,13 @@
|
||||
"@pureadmin/descriptions": "^1.1.0",
|
||||
"@pureadmin/table": "^1.2.0",
|
||||
"@pureadmin/utils": "^1.1.5",
|
||||
"@vueuse/core": "^9.3.0",
|
||||
"@vueuse/core": "^9.4.0",
|
||||
"@vueuse/motion": "^2.0.0-beta.12",
|
||||
"@vueuse/shared": "^9.3.0",
|
||||
"@vueuse/shared": "^9.4.0",
|
||||
"@wangeditor/editor": "^5.1.21",
|
||||
"@wangeditor/editor-for-vue": "^5.1.12",
|
||||
"animate.css": "^4.1.1",
|
||||
"axios": "^0.27.2",
|
||||
"axios": "^1.1.3",
|
||||
"china-area-data": "^5.0.1",
|
||||
"cropperjs": "^1.5.12",
|
||||
"dayjs": "^1.11.5",
|
||||
@@ -66,7 +66,7 @@
|
||||
"resize-observer-polyfill": "^1.5.1",
|
||||
"responsive-storage": "^2.1.0",
|
||||
"sortablejs": "^1.15.0",
|
||||
"swiper": "^8.4.3",
|
||||
"swiper": "^8.4.4",
|
||||
"typeit": "^8.7.0",
|
||||
"v-contextmenu": "3.0.0",
|
||||
"vue": "^3.2.40",
|
||||
@@ -74,13 +74,13 @@
|
||||
"vue-i18n": "^9.2.2",
|
||||
"vue-json-pretty": "^2.2.2",
|
||||
"vue-pdf-embed": "^1.1.4",
|
||||
"vue-router": "^4.1.5",
|
||||
"vue-router": "^4.1.6",
|
||||
"vue-types": "^4.2.1",
|
||||
"vue-virtual-scroller": "^2.0.0-alpha.1",
|
||||
"vuedraggable": "^4.1.0",
|
||||
"vxe-table": "^4.3.5",
|
||||
"xe-utils": "^3.5.7",
|
||||
"xgplayer": "^2.32.0",
|
||||
"xgplayer": "^2.32.1",
|
||||
"xlsx": "^0.18.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -142,11 +142,13 @@
|
||||
"stylelint-config-recommended": "^6.0.0",
|
||||
"stylelint-config-standard": "^24.0.0",
|
||||
"stylelint-order": "^5.0.0",
|
||||
"tailwindcss": "^3.1.8",
|
||||
"tailwindcss": "^3.2.1",
|
||||
"terser": "^5.15.0",
|
||||
"typescript": "^4.7.4",
|
||||
"unplugin-vue-define-options": "0.7.3",
|
||||
"vite": "^3.1.8",
|
||||
"vite-plugin-cdn-import": "^0.3.5",
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"vite-plugin-mock": "^2.9.6",
|
||||
"vite-plugin-remove-console": "^1.1.0",
|
||||
"vite-svg-loader": "^3.6.0",
|
||||
|
||||
171
pnpm-lock.yaml
generated
171
pnpm-lock.yaml
generated
@@ -41,14 +41,14 @@ specifiers:
|
||||
"@vue/eslint-config-prettier": ^7.0.0
|
||||
"@vue/eslint-config-typescript": ^10.0.0
|
||||
"@vue/runtime-core": ^3.2.40
|
||||
"@vueuse/core": ^9.3.0
|
||||
"@vueuse/core": ^9.4.0
|
||||
"@vueuse/motion": ^2.0.0-beta.12
|
||||
"@vueuse/shared": ^9.3.0
|
||||
"@vueuse/shared": ^9.4.0
|
||||
"@wangeditor/editor": ^5.1.21
|
||||
"@wangeditor/editor-for-vue": ^5.1.12
|
||||
animate.css: ^4.1.1
|
||||
autoprefixer: ^10.4.12
|
||||
axios: ^0.27.2
|
||||
axios: ^1.1.3
|
||||
china-area-data: ^5.0.1
|
||||
cloc: ^2.10.0
|
||||
cropperjs: ^1.5.12
|
||||
@@ -97,14 +97,16 @@ specifiers:
|
||||
stylelint-config-recommended: ^6.0.0
|
||||
stylelint-config-standard: ^24.0.0
|
||||
stylelint-order: ^5.0.0
|
||||
swiper: ^8.4.3
|
||||
tailwindcss: ^3.1.8
|
||||
swiper: ^8.4.4
|
||||
tailwindcss: ^3.2.1
|
||||
terser: ^5.15.0
|
||||
typeit: ^8.7.0
|
||||
typescript: ^4.7.4
|
||||
unplugin-vue-define-options: 0.7.3
|
||||
v-contextmenu: 3.0.0
|
||||
vite: ^3.1.8
|
||||
vite-plugin-cdn-import: ^0.3.5
|
||||
vite-plugin-compression: ^0.5.1
|
||||
vite-plugin-mock: ^2.9.6
|
||||
vite-plugin-remove-console: ^1.1.0
|
||||
vite-svg-loader: ^3.6.0
|
||||
@@ -114,14 +116,14 @@ specifiers:
|
||||
vue-i18n: ^9.2.2
|
||||
vue-json-pretty: ^2.2.2
|
||||
vue-pdf-embed: ^1.1.4
|
||||
vue-router: ^4.1.5
|
||||
vue-router: ^4.1.6
|
||||
vue-tsc: ^0.40.13
|
||||
vue-types: ^4.2.1
|
||||
vue-virtual-scroller: ^2.0.0-alpha.1
|
||||
vuedraggable: ^4.1.0
|
||||
vxe-table: ^4.3.5
|
||||
xe-utils: ^3.5.7
|
||||
xgplayer: ^2.32.0
|
||||
xgplayer: ^2.32.1
|
||||
xlsx: ^0.18.5
|
||||
|
||||
dependencies:
|
||||
@@ -133,13 +135,13 @@ dependencies:
|
||||
"@pureadmin/descriptions": 1.1.0
|
||||
"@pureadmin/table": 1.2.0
|
||||
"@pureadmin/utils": 1.1.5_888d42e6b1d4aaf209a7326195b5949d
|
||||
"@vueuse/core": 9.3.0_vue@3.2.40
|
||||
"@vueuse/core": 9.4.0_vue@3.2.40
|
||||
"@vueuse/motion": 2.0.0-beta.12_vue@3.2.40
|
||||
"@vueuse/shared": 9.3.0_vue@3.2.40
|
||||
"@vueuse/shared": 9.4.0_vue@3.2.40
|
||||
"@wangeditor/editor": 5.1.21
|
||||
"@wangeditor/editor-for-vue": 5.1.12_671b67f2147af6cd32d57e9d16d7b064
|
||||
animate.css: 4.1.1
|
||||
axios: 0.27.2
|
||||
axios: 1.1.3
|
||||
china-area-data: 5.0.1
|
||||
cropperjs: 1.5.12
|
||||
dayjs: 1.11.5
|
||||
@@ -163,7 +165,7 @@ dependencies:
|
||||
resize-observer-polyfill: 1.5.1
|
||||
responsive-storage: 2.1.0
|
||||
sortablejs: 1.15.0
|
||||
swiper: 8.4.3
|
||||
swiper: 8.4.4
|
||||
typeit: 8.7.0
|
||||
v-contextmenu: 3.0.0_vue@3.2.40
|
||||
vue: 3.2.40
|
||||
@@ -171,13 +173,13 @@ dependencies:
|
||||
vue-i18n: 9.2.2_vue@3.2.40
|
||||
vue-json-pretty: 2.2.2_vue@3.2.40
|
||||
vue-pdf-embed: 1.1.4_vue@3.2.40
|
||||
vue-router: 4.1.5_vue@3.2.40
|
||||
vue-router: 4.1.6_vue@3.2.40
|
||||
vue-types: 4.2.1_vue@3.2.40
|
||||
vue-virtual-scroller: 2.0.0-alpha.1_vue@3.2.40
|
||||
vuedraggable: 4.1.0_vue@3.2.40
|
||||
vxe-table: 4.3.5_vue@3.2.40+xe-utils@3.5.7
|
||||
xe-utils: 3.5.7
|
||||
xgplayer: 2.32.0
|
||||
xgplayer: 2.32.1
|
||||
xlsx: 0.18.5
|
||||
|
||||
devDependencies:
|
||||
@@ -239,11 +241,13 @@ devDependencies:
|
||||
stylelint-config-recommended: 6.0.0_stylelint@14.13.0
|
||||
stylelint-config-standard: 24.0.0_stylelint@14.13.0
|
||||
stylelint-order: 5.0.0_stylelint@14.13.0
|
||||
tailwindcss: 3.1.8
|
||||
tailwindcss: 3.2.1
|
||||
terser: 5.15.1
|
||||
typescript: 4.8.4
|
||||
unplugin-vue-define-options: 0.7.3_vite@3.1.8+vue@3.2.40
|
||||
vite: 3.1.8_sass@1.55.0+terser@5.15.1
|
||||
vite-plugin-cdn-import: 0.3.5
|
||||
vite-plugin-compression: 0.5.1_vite@3.1.8
|
||||
vite-plugin-mock: 2.9.6_mockjs@1.1.0+vite@3.1.8
|
||||
vite-plugin-remove-console: 1.1.0
|
||||
vite-svg-loader: 3.6.0
|
||||
@@ -1681,10 +1685,10 @@ packages:
|
||||
}
|
||||
dev: false
|
||||
|
||||
/@types/web-bluetooth/0.0.15:
|
||||
/@types/web-bluetooth/0.0.16:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-w7hEHXnPMEZ+4nGKl/KDRVpxkwYxYExuHOYXyzIzCDzEZ9ZCGMAewulr9IqJu2LR4N37fcnb1XVeuZ09qgOxhA==
|
||||
integrity: sha512-oh8q2Zc32S6gd/j50GowEjKLoOVOwHP/bWVjKJInBwQqdOYMdPrf1oVlelTlyfFK3CKxL1uahMDAr+vy8T7yMQ==
|
||||
}
|
||||
dev: false
|
||||
|
||||
@@ -2080,6 +2084,13 @@ packages:
|
||||
}
|
||||
dev: false
|
||||
|
||||
/@vue/devtools-api/6.4.5:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-JD5fcdIuFxU4fQyXUu3w2KpAJHzTVdN+p4iOX2lMWSHMOoQdMAcpFLZzm9Z/2nmsoZ1a96QEhZ26e50xLBsgOQ==
|
||||
}
|
||||
dev: false
|
||||
|
||||
/@vue/eslint-config-prettier/7.0.0_eslint@8.25.0+prettier@2.7.1:
|
||||
resolution:
|
||||
{
|
||||
@@ -2215,15 +2226,15 @@ packages:
|
||||
vue-demi: 0.13.11_vue@3.2.40
|
||||
dev: false
|
||||
|
||||
/@vueuse/core/9.3.0_vue@3.2.40:
|
||||
/@vueuse/core/9.4.0_vue@3.2.40:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-64Rna8IQDWpdrJxgitDg7yv1yTp41ZmvV8zlLEylK4QQLWAhz1OFGZDPZ8bU4lwcGgbEJ2sGi2jrdNh4LttUSQ==
|
||||
integrity: sha512-JzgenGj1ZF2BHOen5rsFiAyyI9sXAv7aKhNLlm9b7SwYQeKTcxTWdhudonURCSP3Egl9NQaRBzes2lv/1JUt/Q==
|
||||
}
|
||||
dependencies:
|
||||
"@types/web-bluetooth": 0.0.15
|
||||
"@vueuse/metadata": 9.3.0
|
||||
"@vueuse/shared": 9.3.0_vue@3.2.40
|
||||
"@types/web-bluetooth": 0.0.16
|
||||
"@vueuse/metadata": 9.4.0
|
||||
"@vueuse/shared": 9.4.0_vue@3.2.40
|
||||
vue-demi: 0.13.11_vue@3.2.40
|
||||
transitivePeerDependencies:
|
||||
- "@vue/composition-api"
|
||||
@@ -2237,10 +2248,10 @@ packages:
|
||||
}
|
||||
dev: false
|
||||
|
||||
/@vueuse/metadata/9.3.0:
|
||||
/@vueuse/metadata/9.4.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-GnnfjbzIPJIh9ngL9s9oGU1+Hx/h5/KFqTfJykzh/1xjaHkedV9g0MASpdmPZIP+ynNhKAcEfA6g5i8KXwtoMA==
|
||||
integrity: sha512-7GKMdGAsJyQJl35MYOz/RDpP0FxuiZBRDSN79QIPbdqYx4Sd0sVTnIC68KJ6Oln0t0SouvSUMvRHuno216Ud2Q==
|
||||
}
|
||||
dev: false
|
||||
|
||||
@@ -2283,10 +2294,10 @@ packages:
|
||||
vue-demi: 0.13.11_vue@3.2.40
|
||||
dev: false
|
||||
|
||||
/@vueuse/shared/9.3.0_vue@3.2.40:
|
||||
/@vueuse/shared/9.4.0_vue@3.2.40:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-caGUWLY0DpPC6l31KxeUy6vPVNA0yKxx81jFYLoMpyP6cF84FG5Dkf69DfSUqL57wX8JcUkJDMnQaQIZPWFEQQ==
|
||||
integrity: sha512-fTuem51KwMCnqUKkI8B57qAIMcFovtGgsCtAeqxIzH3i6nE9VYge+gVfneNHAAy7lj8twbkNfqQSygOPJTm4tQ==
|
||||
}
|
||||
dependencies:
|
||||
vue-demi: 0.13.11_vue@3.2.40
|
||||
@@ -2852,14 +2863,15 @@ packages:
|
||||
postcss-value-parser: 4.2.0
|
||||
dev: true
|
||||
|
||||
/axios/0.27.2:
|
||||
/axios/1.1.3:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==
|
||||
integrity: sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==
|
||||
}
|
||||
dependencies:
|
||||
follow-redirects: 1.15.2
|
||||
form-data: 4.0.0
|
||||
proxy-from-env: 1.1.0
|
||||
transitivePeerDependencies:
|
||||
- debug
|
||||
dev: false
|
||||
@@ -3579,10 +3591,10 @@ packages:
|
||||
type: 1.2.0
|
||||
dev: false
|
||||
|
||||
/danmu.js/1.1.1:
|
||||
/danmu.js/1.1.2:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-UmnwBCMbedOw8p6Xrl2HZECOmtCOJ3wL709IBQti+u1tHpDyt/rTjbu3I+NUZ8JzBMf3nscf4fAaWXV/mpKx5g==
|
||||
integrity: sha512-QbJYDP7qJ70fZgq+2bm2xj4jLNymC1wYKfb8cM8Y89w3GRdbCgxV39Znoj45AWU3WYzK/CVN7papo+BmoJ7RjQ==
|
||||
}
|
||||
dependencies:
|
||||
event-emitter: 0.3.5
|
||||
@@ -3673,10 +3685,10 @@ packages:
|
||||
engines: { node: ">=8" }
|
||||
dev: true
|
||||
|
||||
/defined/1.0.0:
|
||||
/defined/1.0.1:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ==
|
||||
integrity: sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==
|
||||
}
|
||||
dev: true
|
||||
|
||||
@@ -3697,8 +3709,8 @@ packages:
|
||||
hasBin: true
|
||||
dependencies:
|
||||
acorn-node: 1.8.2
|
||||
defined: 1.0.0
|
||||
minimist: 1.2.6
|
||||
defined: 1.0.1
|
||||
minimist: 1.2.7
|
||||
dev: true
|
||||
|
||||
/didyoumean/1.2.2:
|
||||
@@ -3935,7 +3947,7 @@ packages:
|
||||
"@popperjs/core": /@sxzz/popperjs-es/2.11.7
|
||||
"@types/lodash": 4.14.186
|
||||
"@types/lodash-es": 4.17.6
|
||||
"@vueuse/core": 9.3.0_vue@3.2.40
|
||||
"@vueuse/core": 9.4.0_vue@3.2.40
|
||||
async-validator: 4.2.5
|
||||
dayjs: 1.11.5
|
||||
escape-html: 1.0.3
|
||||
@@ -5513,6 +5525,15 @@ packages:
|
||||
}
|
||||
engines: { node: ">=0.10.0" }
|
||||
|
||||
/is-reference/1.2.1:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==
|
||||
}
|
||||
dependencies:
|
||||
"@types/estree": 0.0.39
|
||||
dev: true
|
||||
|
||||
/is-regexp/1.0.0:
|
||||
resolution:
|
||||
{
|
||||
@@ -6170,10 +6191,10 @@ packages:
|
||||
kind-of: 6.0.3
|
||||
dev: true
|
||||
|
||||
/minimist/1.2.6:
|
||||
/minimist/1.2.7:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
|
||||
integrity: sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
|
||||
}
|
||||
dev: true
|
||||
|
||||
@@ -6920,10 +6941,10 @@ packages:
|
||||
postcss-selector-parser: 6.0.10
|
||||
dev: true
|
||||
|
||||
/postcss-nested/5.0.6_postcss@8.4.17:
|
||||
/postcss-nested/6.0.0_postcss@8.4.17:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-rKqm2Fk0KbA8Vt3AdGN0FB9OBOMDVajMG6ZCf/GoHgdxUJ4sBFp0A/uMIRm+MJUdo33YXEtjqIz8u7DAp8B7DA==
|
||||
integrity: sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==
|
||||
}
|
||||
engines: { node: ">=12.0" }
|
||||
peerDependencies:
|
||||
@@ -7259,6 +7280,13 @@ packages:
|
||||
engines: { node: ">= 0.6.0" }
|
||||
dev: false
|
||||
|
||||
/proxy-from-env/1.1.0:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
|
||||
}
|
||||
dev: false
|
||||
|
||||
/pump/3.0.0:
|
||||
resolution:
|
||||
{
|
||||
@@ -7523,6 +7551,23 @@ packages:
|
||||
glob: 7.2.3
|
||||
dev: true
|
||||
|
||||
/rollup-plugin-external-globals/0.6.1:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-mlp3KNa5sE4Sp9UUR2rjBrxjG79OyZAh/QC18RHIjM+iYkbBwNXSo8DHRMZWtzJTrH8GxQ+SJvCTN3i14uMXIA==
|
||||
}
|
||||
peerDependencies:
|
||||
rollup: ^2.25.0
|
||||
peerDependenciesMeta:
|
||||
rollup:
|
||||
optional: true
|
||||
dependencies:
|
||||
"@rollup/pluginutils": 4.2.1
|
||||
estree-walker: 2.0.2
|
||||
is-reference: 1.2.1
|
||||
magic-string: 0.25.9
|
||||
dev: true
|
||||
|
||||
/rollup-plugin-visualizer/5.8.2:
|
||||
resolution:
|
||||
{
|
||||
@@ -8235,10 +8280,10 @@ packages:
|
||||
stable: 0.1.8
|
||||
dev: true
|
||||
|
||||
/swiper/8.4.3:
|
||||
/swiper/8.4.4:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-+Ne/3rSZ1t28r//Upg8AdLgXJ+/nTw79GZFl6RQb2TckfnX6JTQZWWiNTT3uqP9Cyixb+OhT9fRBqAWnjM444A==
|
||||
integrity: sha512-jA/8BfOZwT8PqPSnMX0TENZYitXEhNa7ZSNj1Diqh5LZyUJoBQaZcqAiPQ/PIg1+IPaRn/V8ZYVb0nxHMh51yw==
|
||||
}
|
||||
engines: { node: ">= 4.7.0" }
|
||||
requiresBuild: true
|
||||
@@ -8268,10 +8313,10 @@ packages:
|
||||
strip-ansi: 6.0.1
|
||||
dev: true
|
||||
|
||||
/tailwindcss/3.1.8:
|
||||
/tailwindcss/3.2.1:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-YSneUCZSFDYMwk+TGq8qYFdCA3yfBRdBlS7txSq0LUmzyeqRe3a8fBQzbz9M3WS/iFT4BNf/nmw9mEzrnSaC0g==
|
||||
integrity: sha512-Uw+GVSxp5CM48krnjHObqoOwlCt5Qo6nw1jlCRwfGy68dSYb/LwS9ZFidYGRiM+w6rMawkZiu1mEMAsHYAfoLg==
|
||||
}
|
||||
engines: { node: ">=12.13.0" }
|
||||
hasBin: true
|
||||
@@ -8286,6 +8331,7 @@ packages:
|
||||
glob-parent: 6.0.2
|
||||
is-glob: 4.0.3
|
||||
lilconfig: 2.0.6
|
||||
micromatch: 4.0.5
|
||||
normalize-path: 3.0.0
|
||||
object-hash: 3.0.0
|
||||
picocolors: 1.0.0
|
||||
@@ -8293,7 +8339,7 @@ packages:
|
||||
postcss-import: 14.1.0_postcss@8.4.17
|
||||
postcss-js: 4.0.0_postcss@8.4.17
|
||||
postcss-load-config: 3.1.4_postcss@8.4.17
|
||||
postcss-nested: 5.0.6_postcss@8.4.17
|
||||
postcss-nested: 6.0.0_postcss@8.4.17
|
||||
postcss-selector-parser: 6.0.10
|
||||
postcss-value-parser: 4.2.0
|
||||
quick-lru: 5.1.1
|
||||
@@ -8681,6 +8727,33 @@ packages:
|
||||
spdx-expression-parse: 3.0.1
|
||||
dev: true
|
||||
|
||||
/vite-plugin-cdn-import/0.3.5:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-e1raoalfBiIhv+hnMeSp1UNjloDDBhHpeFxkwRRdPBmTdDRqdEEn8owUmT5u8UBSVCs4xN3n/od4a91vXEhXPQ==
|
||||
}
|
||||
dependencies:
|
||||
rollup-plugin-external-globals: 0.6.1
|
||||
transitivePeerDependencies:
|
||||
- rollup
|
||||
dev: true
|
||||
|
||||
/vite-plugin-compression/0.5.1_vite@3.1.8:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-5QJKBDc+gNYVqL/skgFAP81Yuzo9R+EAf19d+EtsMF/i8kFUpNi3J/H01QD3Oo8zBQn+NzoCIFkpPLynoOzaJg==
|
||||
}
|
||||
peerDependencies:
|
||||
vite: ">=2.0.0"
|
||||
dependencies:
|
||||
chalk: 4.1.2
|
||||
debug: 4.3.4
|
||||
fs-extra: 10.1.0
|
||||
vite: 3.1.8_sass@1.55.0+terser@5.15.1
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/vite-plugin-mock/2.9.6_mockjs@1.1.0+vite@3.1.8:
|
||||
resolution:
|
||||
{
|
||||
@@ -8875,15 +8948,15 @@ packages:
|
||||
vue: 3.2.40
|
||||
dev: false
|
||||
|
||||
/vue-router/4.1.5_vue@3.2.40:
|
||||
/vue-router/4.1.6_vue@3.2.40:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-IsvoF5D2GQ/EGTs/Th4NQms9gd2NSqV+yylxIyp/OYp8xOwxmU8Kj/74E9DTSYAyH5LX7idVUngN3JSj1X4xcQ==
|
||||
integrity: sha512-DYWYwsG6xNPmLq/FmZn8Ip+qrhFEzA14EI12MsMgVxvHFDYvlr4NXpVF5hrRH1wVcDP8fGi5F4rxuJSl8/r+EQ==
|
||||
}
|
||||
peerDependencies:
|
||||
vue: ^3.2.0
|
||||
dependencies:
|
||||
"@vue/devtools-api": 6.4.4
|
||||
"@vue/devtools-api": 6.4.5
|
||||
vue: 3.2.40
|
||||
dev: false
|
||||
|
||||
@@ -9131,16 +9204,16 @@ packages:
|
||||
generate-source-map: 0.0.5
|
||||
dev: false
|
||||
|
||||
/xgplayer/2.32.0:
|
||||
/xgplayer/2.32.1:
|
||||
resolution:
|
||||
{
|
||||
integrity: sha512-OT5VKU2j4729+bJhrR1BPLIrEF1JYeoDyPe9gLoFodh8XS+i26LbWaM2dOFy7uh+9ZiGUioHkSPDeM1jDrWfdw==
|
||||
integrity: sha512-jUs6108INqnzEn3DTGre6pHW3KroM2w0VKuJNEvOIkoD2oUB+MW5ZZ0PsIwijX/oQRpmvq422CUgo4uqXVidEQ==
|
||||
}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
chalk: 2.4.2
|
||||
commander: 2.20.3
|
||||
danmu.js: 1.1.1
|
||||
danmu.js: 1.1.2
|
||||
downloadjs: 1.4.7
|
||||
draggabilly: 2.4.1
|
||||
event-emitter: 0.3.5
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"Version": "3.6.0",
|
||||
"Version": "3.6.2",
|
||||
"Title": "PureAdmin",
|
||||
"FixedHeader": true,
|
||||
"HiddenSideBar": false,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineComponent, Fragment } from "vue";
|
||||
import { hasAuth } from "/@/router/utils";
|
||||
import { hasAuth } from "@/router/utils";
|
||||
|
||||
export default defineComponent({
|
||||
name: "Auth",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PropType } from "vue";
|
||||
import { propTypes } from "/@/utils/propTypes";
|
||||
import { propTypes } from "@/utils/propTypes";
|
||||
export const countToProps = {
|
||||
startVal: propTypes.number.def(0),
|
||||
endVal: propTypes.number.def(2020),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PropType } from "vue";
|
||||
import { propTypes } from "/@/utils/propTypes";
|
||||
import { propTypes } from "@/utils/propTypes";
|
||||
export const reboundProps = {
|
||||
delay: propTypes.number.def(1),
|
||||
blur: propTypes.number.def(2),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineComponent, ref } from "vue";
|
||||
import { propTypes } from "/@/utils/propTypes";
|
||||
import { propTypes } from "@/utils/propTypes";
|
||||
import "./filpper.css";
|
||||
|
||||
const props = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { cloneDeep } from "lodash-unified";
|
||||
import { ref, computed, CSSProperties, toRef, watch } from "vue";
|
||||
import { IconJson } from "/@/components/ReIcon/data";
|
||||
import { IconJson } from "@/components/ReIcon/data";
|
||||
type ParameterCSSProperties = (item?: string) => CSSProperties | undefined;
|
||||
|
||||
defineOptions({
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
import { reactive, getCurrentInstance, onBeforeMount, onUnmounted } from "vue";
|
||||
import { deviceDetection } from "@pureadmin/utils";
|
||||
import AMapLoader from "@amap/amap-jsapi-loader";
|
||||
import { mapJson } from "/@/api/mock";
|
||||
import car from "/@/assets/car.png";
|
||||
import { mapJson } from "@/api/mock";
|
||||
import car from "@/assets/car.png";
|
||||
|
||||
export interface MapConfigureInter {
|
||||
on: Fn;
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
import "./index.scss";
|
||||
import { cloneDeep } from "lodash-unified";
|
||||
import { isString } from "@pureadmin/utils";
|
||||
import { propTypes } from "/@/utils/propTypes";
|
||||
import { propTypes } from "@/utils/propTypes";
|
||||
import { IconifyIconOffline } from "../../ReIcon";
|
||||
import QRCode, { QRCodeRenderersOptions } from "qrcode";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineComponent, ref, computed, PropType } from "vue";
|
||||
import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
|
||||
import { useEpThemeStoreHook } from "@/store/modules/epTheme";
|
||||
import { IconifyIconOffline } from "../../ReIcon";
|
||||
|
||||
export const loadingSvg = `
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { hasAuth } from "/@/router/utils";
|
||||
import { hasAuth } from "@/router/utils";
|
||||
import { Directive, type DirectiveBinding } from "vue";
|
||||
|
||||
export const auth: Directive = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Directive, type DirectiveBinding, type VNode } from "vue";
|
||||
import elementResizeDetectorMaker from "element-resize-detector";
|
||||
import type { Erd } from "element-resize-detector";
|
||||
import { emitter } from "/@/utils/mitt";
|
||||
import { emitter } from "@/utils/mitt";
|
||||
|
||||
const erd: Erd = elementResizeDetectorMaker({
|
||||
strategy: "scroll"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { useGlobal } from "@pureadmin/utils";
|
||||
import backTop from "/@/assets/svg/back_top.svg?component";
|
||||
import backTop from "@/assets/svg/back_top.svg?component";
|
||||
import { h, computed, Transition, defineComponent } from "vue";
|
||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
||||
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||
|
||||
const props = defineProps({
|
||||
fixedHeader: Boolean
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
import Search from "./search/index.vue";
|
||||
import Notice from "./notice/index.vue";
|
||||
import mixNav from "./sidebar/mixNav.vue";
|
||||
import avatars from "/@/assets/avatars.jpg";
|
||||
import { useNav } from "/@/layout/hooks/useNav";
|
||||
import avatars from "@/assets/avatars.jpg";
|
||||
import { useNav } from "@/layout/hooks/useNav";
|
||||
import Breadcrumb from "./sidebar/breadCrumb.vue";
|
||||
import topCollapse from "./sidebar/topCollapse.vue";
|
||||
import { useTranslationLang } from "../hooks/useTranslationLang";
|
||||
import globalization from "/@/assets/svg/globalization.svg?component";
|
||||
import globalization from "@/assets/svg/globalization.svg?component";
|
||||
|
||||
const {
|
||||
layout,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { onClickOutside } from "@vueuse/core";
|
||||
import { emitter } from "/@/utils/mitt";
|
||||
import { emitter } from "@/utils/mitt";
|
||||
|
||||
let show = ref<Boolean>(false);
|
||||
const target = ref(null);
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import enterOutlined from "/@/assets/svg/enter_outlined.svg?component";
|
||||
import mdiKeyboardEsc from "/@/assets/svg/mdi_keyboard_esc.svg?component";
|
||||
import enterOutlined from "@/assets/svg/enter_outlined.svg?component";
|
||||
import mdiKeyboardEsc from "@/assets/svg/mdi_keyboard_esc.svg?component";
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.search-footer {
|
||||
|
||||
@@ -3,12 +3,12 @@ import { useRouter } from "vue-router";
|
||||
import { cloneDeep } from "lodash-unified";
|
||||
import SearchResult from "./SearchResult.vue";
|
||||
import SearchFooter from "./SearchFooter.vue";
|
||||
import { useNav } from "/@/layout/hooks/useNav";
|
||||
import { transformI18n } from "/@/plugins/i18n";
|
||||
import { useNav } from "@/layout/hooks/useNav";
|
||||
import { transformI18n } from "@/plugins/i18n";
|
||||
import { deleteChildren } from "@pureadmin/utils";
|
||||
import { useDebounceFn, onKeyStroke } from "@vueuse/core";
|
||||
import { ref, watch, computed, nextTick, shallowRef } from "vue";
|
||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
||||
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||
|
||||
interface Props {
|
||||
/** 弹窗显隐 */
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import enterOutlined from "/@/assets/svg/enter_outlined.svg?component";
|
||||
import { useEpThemeStoreHook } from "@/store/modules/epTheme";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
import enterOutlined from "@/assets/svg/enter_outlined.svg?component";
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
|
||||
@@ -8,18 +8,18 @@ import {
|
||||
nextTick,
|
||||
useCssModule
|
||||
} from "vue";
|
||||
import { getConfig } from "/@/config";
|
||||
import { getConfig } from "@/config";
|
||||
import { useRouter } from "vue-router";
|
||||
import panel from "../panel/index.vue";
|
||||
import { emitter } from "/@/utils/mitt";
|
||||
import { resetRouter } from "/@/router";
|
||||
import { emitter } from "@/utils/mitt";
|
||||
import { resetRouter } from "@/router";
|
||||
import { templateRef } from "@vueuse/core";
|
||||
import { removeToken } from "/@/utils/auth";
|
||||
import { routerArrays } from "/@/layout/types";
|
||||
import { useNav } from "/@/layout/hooks/useNav";
|
||||
import { useAppStoreHook } from "/@/store/modules/app";
|
||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
||||
import { useDataThemeChange } from "/@/layout/hooks/useDataThemeChange";
|
||||
import { removeToken } from "@/utils/auth";
|
||||
import { routerArrays } from "@/layout/types";
|
||||
import { useNav } from "@/layout/hooks/useNav";
|
||||
import { useAppStoreHook } from "@/store/modules/app";
|
||||
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||
import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange";
|
||||
import {
|
||||
useDark,
|
||||
debounce,
|
||||
@@ -29,8 +29,8 @@ import {
|
||||
} from "@pureadmin/utils";
|
||||
import { toggleTheme } from "@pureadmin/theme/dist/browser-utils";
|
||||
|
||||
import dayIcon from "/@/assets/svg/day.svg?component";
|
||||
import darkIcon from "/@/assets/svg/dark.svg?component";
|
||||
import dayIcon from "@/assets/svg/day.svg?component";
|
||||
import darkIcon from "@/assets/svg/dark.svg?component";
|
||||
|
||||
const router = useRouter();
|
||||
const { device } = useNav();
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { isEqual } from "lodash-unified";
|
||||
import { transformI18n } from "/@/plugins/i18n";
|
||||
import { transformI18n } from "@/plugins/i18n";
|
||||
import { ref, watch, onMounted, toRaw } from "vue";
|
||||
import { getParentPaths, findRouteByPath } from "/@/router/utils";
|
||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
||||
import { getParentPaths, findRouteByPath } from "@/router/utils";
|
||||
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||
import { useRoute, useRouter, RouteLocationMatched } from "vue-router";
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
@@ -3,11 +3,11 @@ import Search from "../search/index.vue";
|
||||
import Notice from "../notice/index.vue";
|
||||
import { ref, watch, nextTick } from "vue";
|
||||
import SidebarItem from "./sidebarItem.vue";
|
||||
import avatars from "/@/assets/avatars.jpg";
|
||||
import { useNav } from "/@/layout/hooks/useNav";
|
||||
import avatars from "@/assets/avatars.jpg";
|
||||
import { useNav } from "@/layout/hooks/useNav";
|
||||
import { useTranslationLang } from "../../hooks/useTranslationLang";
|
||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
||||
import globalization from "/@/assets/svg/globalization.svg?component";
|
||||
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||
import globalization from "@/assets/svg/globalization.svg?component";
|
||||
|
||||
const menuRef = ref();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { useNav } from "/@/layout/hooks/useNav";
|
||||
import { useNav } from "@/layout/hooks/useNav";
|
||||
|
||||
const props = defineProps({
|
||||
collapse: Boolean
|
||||
@@ -51,6 +51,12 @@ const { title } = useNav();
|
||||
margin-top: 5px;
|
||||
|
||||
.sidebar-title {
|
||||
display: block;
|
||||
width: 160px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
text-align: left;
|
||||
color: #1890ff;
|
||||
font-weight: 600;
|
||||
font-size: 20px;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import Search from "../search/index.vue";
|
||||
import Notice from "../notice/index.vue";
|
||||
import avatars from "/@/assets/avatars.jpg";
|
||||
import { useNav } from "/@/layout/hooks/useNav";
|
||||
import { transformI18n } from "/@/plugins/i18n";
|
||||
import avatars from "@/assets/avatars.jpg";
|
||||
import { useNav } from "@/layout/hooks/useNav";
|
||||
import { transformI18n } from "@/plugins/i18n";
|
||||
import { ref, toRaw, watch, onMounted, nextTick } from "vue";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { getParentPaths, findRouteByPath } from "/@/router/utils";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
import { getParentPaths, findRouteByPath } from "@/router/utils";
|
||||
import { useTranslationLang } from "../../hooks/useTranslationLang";
|
||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
||||
import globalization from "/@/assets/svg/globalization.svg?component";
|
||||
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||
import globalization from "@/assets/svg/globalization.svg?component";
|
||||
|
||||
const menuRef = ref();
|
||||
let defaultActive = ref(null);
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import path from "path";
|
||||
import { childrenType } from "../../types";
|
||||
import { useNav } from "/@/layout/hooks/useNav";
|
||||
import { transformI18n } from "/@/plugins/i18n";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { useNav } from "@/layout/hooks/useNav";
|
||||
import { transformI18n } from "@/plugins/i18n";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
import { ref, toRaw, PropType, nextTick, computed, CSSProperties } from "vue";
|
||||
|
||||
const { layout, isCollapse } = useNav();
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import Logo from "./logo.vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { emitter } from "/@/utils/mitt";
|
||||
import { emitter } from "@/utils/mitt";
|
||||
import SidebarItem from "./sidebarItem.vue";
|
||||
import leftCollapse from "./leftCollapse.vue";
|
||||
import type { StorageConfigs } from "/#/index";
|
||||
import { useNav } from "/@/layout/hooks/useNav";
|
||||
import { useNav } from "@/layout/hooks/useNav";
|
||||
import { storageLocal } from "@pureadmin/utils";
|
||||
import { ref, computed, watch, onBeforeMount } from "vue";
|
||||
import { findRouteByPath, getParentPaths } from "/@/router/utils";
|
||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
||||
import { findRouteByPath, getParentPaths } from "@/router/utils";
|
||||
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||
|
||||
const route = useRoute();
|
||||
const showLogo = ref(
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { emitter } from "/@/utils/mitt";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import { emitter } from "@/utils/mitt";
|
||||
import { RouteConfigs } from "../../types";
|
||||
import { useTags } from "../../hooks/useTag";
|
||||
import { routerArrays } from "/@/layout/types";
|
||||
import { routerArrays } from "@/layout/types";
|
||||
import { isEqual, isEmpty } from "lodash-unified";
|
||||
import { useSettingStoreHook } from "/@/store/modules/settings";
|
||||
import { useSettingStoreHook } from "@/store/modules/settings";
|
||||
import { ref, watch, unref, nextTick, onBeforeMount } from "vue";
|
||||
import { handleAliveRoute, delAliveRoutes } from "/@/router/utils";
|
||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
||||
import { handleAliveRoute, delAliveRoutes } from "@/router/utils";
|
||||
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||
import { useResizeObserver, useDebounceFn, useFullscreen } from "@vueuse/core";
|
||||
|
||||
const {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ref } from "vue";
|
||||
import { getConfig } from "/@/config";
|
||||
import { getConfig } from "@/config";
|
||||
import { find } from "lodash-unified";
|
||||
import { useLayout } from "./useLayout";
|
||||
import { themeColorsType } from "../types";
|
||||
import { TinyColor } from "@ctrl/tinycolor";
|
||||
import { useGlobal } from "@pureadmin/utils";
|
||||
import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
|
||||
import { useEpThemeStoreHook } from "@/store/modules/epTheme";
|
||||
import {
|
||||
darken,
|
||||
lighten,
|
||||
|
||||
@@ -2,7 +2,7 @@ import { computed } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { routerArrays } from "../types";
|
||||
import { useGlobal } from "@pureadmin/utils";
|
||||
import { useMultiTagsStore } from "/@/store/modules/multiTags";
|
||||
import { useMultiTagsStore } from "@/store/modules/multiTags";
|
||||
|
||||
export function useLayout() {
|
||||
const { $storage, $config } = useGlobal<GlobalPropertiesApi>();
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { computed } from "vue";
|
||||
import { getConfig } from "/@/config";
|
||||
import { getConfig } from "@/config";
|
||||
import { useRouter } from "vue-router";
|
||||
import { emitter } from "/@/utils/mitt";
|
||||
import { emitter } from "@/utils/mitt";
|
||||
import { routeMetaType } from "../types";
|
||||
import { useGlobal } from "@pureadmin/utils";
|
||||
import { transformI18n } from "/@/plugins/i18n";
|
||||
import { router, remainingPaths } from "/@/router";
|
||||
import { useAppStoreHook } from "/@/store/modules/app";
|
||||
import { transformI18n } from "@/plugins/i18n";
|
||||
import { router, remainingPaths } from "@/router";
|
||||
import { useAppStoreHook } from "@/store/modules/app";
|
||||
import { i18nChangeLanguage } from "@wangeditor/editor";
|
||||
import { useUserStoreHook } from "/@/store/modules/user";
|
||||
import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
|
||||
import { useUserStoreHook } from "@/store/modules/user";
|
||||
import { useEpThemeStoreHook } from "@/store/modules/epTheme";
|
||||
|
||||
const errorInfo = "当前路由配置不正确,请检查配置";
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ import { isEqual } from "lodash-unified";
|
||||
import type { StorageConfigs } from "/#/index";
|
||||
import { useEventListener } from "@vueuse/core";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { transformI18n, $t } from "/@/plugins/i18n";
|
||||
import { useSettingStoreHook } from "/@/store/modules/settings";
|
||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
||||
import { transformI18n, $t } from "@/plugins/i18n";
|
||||
import { useSettingStoreHook } from "@/store/modules/settings";
|
||||
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||
import { storageLocal, toggleClass, hasClass } from "@pureadmin/utils";
|
||||
|
||||
export function useTags() {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { setType } from "./types";
|
||||
import { emitter } from "/@/utils/mitt";
|
||||
import { emitter } from "@/utils/mitt";
|
||||
import { useLayout } from "./hooks/useLayout";
|
||||
import { useAppStoreHook } from "/@/store/modules/app";
|
||||
import { useSettingStoreHook } from "/@/store/modules/settings";
|
||||
import { useAppStoreHook } from "@/store/modules/app";
|
||||
import { useSettingStoreHook } from "@/store/modules/settings";
|
||||
import { deviceDetection, useDark, useGlobal } from "@pureadmin/utils";
|
||||
import { h, reactive, computed, onMounted, defineComponent } from "vue";
|
||||
|
||||
@@ -13,7 +13,7 @@ import appMain from "./components/appMain.vue";
|
||||
import setting from "./components/setting/index.vue";
|
||||
import Vertical from "./components/sidebar/vertical.vue";
|
||||
import Horizontal from "./components/sidebar/horizontal.vue";
|
||||
import backTop from "/@/assets/svg/back_top.svg?component";
|
||||
import backTop from "@/assets/svg/back_top.svg?component";
|
||||
|
||||
const { isDark } = useDark();
|
||||
const { layout } = useLayout();
|
||||
|
||||
14
src/main.ts
14
src/main.ts
@@ -1,15 +1,15 @@
|
||||
import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import { setupStore } from "/@/store";
|
||||
import { setupStore } from "@/store";
|
||||
import ElementPlus from "element-plus";
|
||||
import { useI18n } from "@/plugins/i18n";
|
||||
import { getServerConfig } from "./config";
|
||||
import { createApp, Directive } from "vue";
|
||||
import { useI18n } from "../src/plugins/i18n";
|
||||
import { MotionPlugin } from "@vueuse/motion";
|
||||
import { useEcharts } from "/@/plugins/echarts";
|
||||
import { useEcharts } from "@/plugins/echarts";
|
||||
import { useTable } from "@/plugins/vxe-table";
|
||||
import VirtualScroller from "vue-virtual-scroller";
|
||||
import { useTable } from "../src/plugins/vxe-table";
|
||||
import { injectResponsiveStorage } from "/@/utils/responsive";
|
||||
import { injectResponsiveStorage } from "@/utils/responsive";
|
||||
|
||||
import Table from "@pureadmin/table";
|
||||
import PureDescriptions from "@pureadmin/descriptions";
|
||||
@@ -32,7 +32,7 @@ import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
|
||||
const app = createApp(App);
|
||||
|
||||
// 自定义指令
|
||||
import * as directives from "/@/directives";
|
||||
import * as directives from "@/directives";
|
||||
Object.keys(directives).forEach(key => {
|
||||
app.directive(key, (directives as { [key: string]: Directive })[key]);
|
||||
});
|
||||
@@ -48,7 +48,7 @@ app.component("IconifyIconOnline", IconifyIconOnline);
|
||||
app.component("FontIcon", FontIcon);
|
||||
|
||||
// 全局注册按钮级别权限组件
|
||||
import { Auth } from "/@/components/ReAuth";
|
||||
import { Auth } from "@/components/ReAuth";
|
||||
app.component("Auth", Auth);
|
||||
|
||||
getServerConfig(app).then(async config => {
|
||||
|
||||
@@ -2,7 +2,7 @@ import "xe-utils";
|
||||
import "./index.scss";
|
||||
import XEUtils from "xe-utils";
|
||||
import { App, unref } from "vue";
|
||||
import { i18n } from "/@/plugins/i18n";
|
||||
import { i18n } from "@/plugins/i18n";
|
||||
import "font-awesome/css/font-awesome.min.css";
|
||||
import zh from "vxe-table/lib/locale/lang/zh-CN";
|
||||
import en from "vxe-table/lib/locale/lang/en-US";
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { getConfig } from "/@/config";
|
||||
import { getConfig } from "@/config";
|
||||
import { toRouteType } from "./types";
|
||||
import NProgress from "/@/utils/progress";
|
||||
import NProgress from "@/utils/progress";
|
||||
import { findIndex } from "lodash-unified";
|
||||
import { transformI18n } from "/@/plugins/i18n";
|
||||
import { sessionKey, type DataInfo } from "/@/utils/auth";
|
||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
||||
import { transformI18n } from "@/plugins/i18n";
|
||||
import { sessionKey, type DataInfo } from "@/utils/auth";
|
||||
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||
import {
|
||||
Router,
|
||||
createRouter,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const ableRouter: RouteConfigsTable = {
|
||||
@@ -13,7 +13,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/watermark",
|
||||
name: "WaterMark",
|
||||
component: () => import("/@/views/able/watermark.vue"),
|
||||
component: () => import("@/views/able/watermark.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsWatermark")
|
||||
}
|
||||
@@ -21,7 +21,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/print",
|
||||
name: "Print",
|
||||
component: () => import("/@/views/able/print.vue"),
|
||||
component: () => import("@/views/able/print.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsPrint")
|
||||
}
|
||||
@@ -29,7 +29,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/download",
|
||||
name: "Download",
|
||||
component: () => import("/@/views/able/download.vue"),
|
||||
component: () => import("@/views/able/download.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsDownload")
|
||||
}
|
||||
@@ -37,7 +37,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/iconSelect",
|
||||
name: "IconSelect",
|
||||
component: () => import("/@/views/able/icon-select.vue"),
|
||||
component: () => import("@/views/able/icon-select.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsIconSelect")
|
||||
}
|
||||
@@ -45,7 +45,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/timeline",
|
||||
name: "TimeLine",
|
||||
component: () => import("/@/views/able/timeline.vue"),
|
||||
component: () => import("@/views/able/timeline.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsTimeline")
|
||||
}
|
||||
@@ -53,7 +53,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/menuTree",
|
||||
name: "MenuTree",
|
||||
component: () => import("/@/views/able/menu-tree.vue"),
|
||||
component: () => import("@/views/able/menu-tree.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsMenuTree")
|
||||
}
|
||||
@@ -61,7 +61,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/lineTree",
|
||||
name: "LineTree",
|
||||
component: () => import("/@/views/able/line-tree.vue"),
|
||||
component: () => import("@/views/able/line-tree.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsLineTree")
|
||||
}
|
||||
@@ -69,7 +69,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/antTabs",
|
||||
name: "AntTabs",
|
||||
component: () => import("/@/views/able/ant-tabs.vue"),
|
||||
component: () => import("@/views/able/ant-tabs.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsAntTabs")
|
||||
}
|
||||
@@ -77,7 +77,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/antAnchor",
|
||||
name: "AntAnchor",
|
||||
component: () => import("/@/views/able/ant-anchor.vue"),
|
||||
component: () => import("@/views/able/ant-anchor.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsAntAnchor")
|
||||
}
|
||||
@@ -85,7 +85,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/antTreeSelect",
|
||||
name: "AntTreeSelect",
|
||||
component: () => import("/@/views/able/ant-treeSelect.vue"),
|
||||
component: () => import("@/views/able/ant-treeSelect.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsAntTreeSelect")
|
||||
}
|
||||
@@ -93,7 +93,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/debounce",
|
||||
name: "Debounce",
|
||||
component: () => import("/@/views/able/debounce.vue"),
|
||||
component: () => import("@/views/able/debounce.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsDebounce")
|
||||
}
|
||||
@@ -101,7 +101,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/barcode",
|
||||
name: "BarCode",
|
||||
component: () => import("/@/views/able/barcode.vue"),
|
||||
component: () => import("@/views/able/barcode.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsBarcode")
|
||||
}
|
||||
@@ -109,7 +109,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/qrcode",
|
||||
name: "QrCode",
|
||||
component: () => import("/@/views/able/qrcode.vue"),
|
||||
component: () => import("@/views/able/qrcode.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsQrcode")
|
||||
}
|
||||
@@ -117,7 +117,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/cascader",
|
||||
name: "Cascader",
|
||||
component: () => import("/@/views/able/cascader.vue"),
|
||||
component: () => import("@/views/able/cascader.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsCascader")
|
||||
}
|
||||
@@ -125,7 +125,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/swiper",
|
||||
name: "Swiper",
|
||||
component: () => import("/@/views/able/swiper.vue"),
|
||||
component: () => import("@/views/able/swiper.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsSwiper")
|
||||
}
|
||||
@@ -133,7 +133,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/virtualList",
|
||||
name: "VirtualList",
|
||||
component: () => import("/@/views/able/virtual-list/index.vue"),
|
||||
component: () => import("@/views/able/virtual-list/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsVirtualList")
|
||||
}
|
||||
@@ -141,7 +141,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/pdf",
|
||||
name: "Pdf",
|
||||
component: () => import("/@/views/able/pdf.vue"),
|
||||
component: () => import("@/views/able/pdf.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsPdf")
|
||||
}
|
||||
@@ -149,7 +149,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/execl",
|
||||
name: "Execl",
|
||||
component: () => import("/@/views/able/execl.vue"),
|
||||
component: () => import("@/views/able/execl.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsExecl")
|
||||
}
|
||||
@@ -157,7 +157,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/able/infiniteScroll",
|
||||
name: "InfiniteScroll",
|
||||
component: () => import("/@/views/able/infinite-scroll.vue"),
|
||||
component: () => import("@/views/able/infinite-scroll.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsInfiniteScroll")
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const aboutRouter: RouteConfigsTable = {
|
||||
@@ -13,7 +13,7 @@ const aboutRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/about/index",
|
||||
name: "About",
|
||||
component: () => import("/@/views/about/index.vue"),
|
||||
component: () => import("@/views/about/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsAbout")
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const componentsRouter: RouteConfigsTable = {
|
||||
@@ -13,7 +13,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/video",
|
||||
name: "Video",
|
||||
component: () => import("/@/views/components/video/index.vue"),
|
||||
component: () => import("@/views/components/video/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsvideo")
|
||||
}
|
||||
@@ -21,7 +21,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/map",
|
||||
name: "Map",
|
||||
component: () => import("/@/views/components/map/index.vue"),
|
||||
component: () => import("@/views/components/map/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsmap"),
|
||||
keepAlive: true,
|
||||
@@ -33,7 +33,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/draggable",
|
||||
name: "Draggable",
|
||||
component: () => import("/@/views/components/draggable/index.vue"),
|
||||
component: () => import("@/views/components/draggable/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsdraggable"),
|
||||
transition: {
|
||||
@@ -45,7 +45,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/splitPane",
|
||||
name: "SplitPane",
|
||||
component: () => import("/@/views/components/split-pane/index.vue"),
|
||||
component: () => import("@/views/components/split-pane/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hssplitPane"),
|
||||
extraIcon: {
|
||||
@@ -57,7 +57,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/button",
|
||||
name: "Button",
|
||||
component: () => import("/@/views/components/button/index.vue"),
|
||||
component: () => import("@/views/components/button/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsbutton")
|
||||
}
|
||||
@@ -65,7 +65,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/cropping",
|
||||
name: "Cropping",
|
||||
component: () => import("/@/views/components/cropping/index.vue"),
|
||||
component: () => import("@/views/components/cropping/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hscropping")
|
||||
}
|
||||
@@ -73,7 +73,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/countTo",
|
||||
name: "CountTo",
|
||||
component: () => import("/@/views/components/count-to/index.vue"),
|
||||
component: () => import("@/views/components/count-to/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hscountTo")
|
||||
}
|
||||
@@ -81,7 +81,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/selector",
|
||||
name: "Selector",
|
||||
component: () => import("/@/views/components/selector/index.vue"),
|
||||
component: () => import("@/views/components/selector/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsselector")
|
||||
}
|
||||
@@ -89,7 +89,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/seamlessScroll",
|
||||
name: "SeamlessScroll",
|
||||
component: () => import("/@/views/components/seamless-scroll/index.vue"),
|
||||
component: () => import("@/views/components/seamless-scroll/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsseamless")
|
||||
}
|
||||
@@ -97,7 +97,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/contextmenu",
|
||||
name: "ContextMenu",
|
||||
component: () => import("/@/views/components/contextmenu/index.vue"),
|
||||
component: () => import("@/views/components/contextmenu/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hscontextmenu")
|
||||
}
|
||||
@@ -105,7 +105,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/typeit",
|
||||
name: "Typeit",
|
||||
component: () => import("/@/views/components/typeit/index.vue"),
|
||||
component: () => import("@/views/components/typeit/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hstypeit")
|
||||
}
|
||||
@@ -113,7 +113,7 @@ const componentsRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/components/json-editor",
|
||||
name: "JsonEditor",
|
||||
component: () => import("/@/views/components/json-editor/index.vue"),
|
||||
component: () => import("@/views/components/json-editor/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsjsoneditor")
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const editorRouter: RouteConfigsTable = {
|
||||
@@ -13,7 +13,7 @@ const editorRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/editor/index",
|
||||
name: "Editor",
|
||||
component: () => import("/@/views/editor/index.vue"),
|
||||
component: () => import("@/views/editor/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hseditor"),
|
||||
keepAlive: true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const errorRouter: RouteConfigsTable = {
|
||||
@@ -13,7 +13,7 @@ const errorRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/error/403",
|
||||
name: "403",
|
||||
component: () => import("/@/views/error/403.vue"),
|
||||
component: () => import("@/views/error/403.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsfourZeroOne")
|
||||
}
|
||||
@@ -21,7 +21,7 @@ const errorRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/error/404",
|
||||
name: "404",
|
||||
component: () => import("/@/views/error/404.vue"),
|
||||
component: () => import("@/views/error/404.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsfourZeroFour")
|
||||
}
|
||||
@@ -29,7 +29,7 @@ const errorRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/error/500",
|
||||
name: "500",
|
||||
component: () => import("/@/views/error/500.vue"),
|
||||
component: () => import("@/views/error/500.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsFive")
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const flowChartRouter: RouteConfigsTable = {
|
||||
@@ -13,7 +13,7 @@ const flowChartRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/flowChart/index",
|
||||
name: "FlowChart",
|
||||
component: () => import("/@/views/flow-chart/index.vue"),
|
||||
component: () => import("@/views/flow-chart/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsflowChart")
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const formDesignRouter: RouteConfigsTable = {
|
||||
@@ -13,7 +13,7 @@ const formDesignRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/formDesign/index",
|
||||
name: "FormDesign",
|
||||
component: () => import("/@/views/form-design/index.vue"),
|
||||
component: () => import("@/views/form-design/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsFormDesign")
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const guideRouter: RouteConfigsTable = {
|
||||
@@ -13,7 +13,7 @@ const guideRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/guide/index",
|
||||
name: "Guide",
|
||||
component: () => import("/@/views/guide/index.vue"),
|
||||
component: () => import("@/views/guide/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsguide")
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
const Layout = () => import("/@/layout/index.vue");
|
||||
const Layout = () => import("@/layout/index.vue");
|
||||
|
||||
const homeRouter: RouteConfigsTable = {
|
||||
path: "/",
|
||||
@@ -16,7 +16,7 @@ const homeRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/welcome",
|
||||
name: "Welcome",
|
||||
component: () => import("/@/views/welcome/index.vue"),
|
||||
component: () => import("@/views/welcome/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hshome")
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const ableRouter: RouteConfigsTable = {
|
||||
@@ -13,7 +13,7 @@ const ableRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/list/card",
|
||||
name: "ListCard",
|
||||
component: () => import("/@/views/list/card/index.vue"),
|
||||
component: () => import("@/views/list/card/index.vue"),
|
||||
meta: {
|
||||
icon: "card",
|
||||
title: $t("menus.hsListCard"),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const nestedRouter: RouteConfigsTable = {
|
||||
@@ -20,7 +20,7 @@ const nestedRouter: RouteConfigsTable = {
|
||||
children: [
|
||||
{
|
||||
path: "/nested/menu1/menu1-1",
|
||||
component: () => import("/@/views/nested/menu1/menu1-1/index.vue"),
|
||||
component: () => import("@/views/nested/menu1/menu1-1/index.vue"),
|
||||
name: "Menu1-1",
|
||||
meta: {
|
||||
title: $t("menus.hsmenu1-1"),
|
||||
@@ -38,7 +38,7 @@ const nestedRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/nested/menu1/menu1-2/menu1-2-1",
|
||||
component: () =>
|
||||
import("/@/views/nested/menu1/menu1-2/menu1-2-1/index.vue"),
|
||||
import("@/views/nested/menu1/menu1-2/menu1-2-1/index.vue"),
|
||||
name: "Menu1-2-1",
|
||||
meta: {
|
||||
title: $t("menus.hsmenu1-2-1"),
|
||||
@@ -48,7 +48,7 @@ const nestedRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/nested/menu1/menu1-2/menu1-2-2",
|
||||
component: () =>
|
||||
import("/@/views/nested/menu1/menu1-2/menu1-2-2/index.vue"),
|
||||
import("@/views/nested/menu1/menu1-2/menu1-2-2/index.vue"),
|
||||
name: "Menu1-2-2",
|
||||
meta: {
|
||||
title: $t("menus.hsmenu1-2-2"),
|
||||
@@ -63,7 +63,7 @@ const nestedRouter: RouteConfigsTable = {
|
||||
},
|
||||
{
|
||||
path: "/nested/menu1/menu1-3",
|
||||
component: () => import("/@/views/nested/menu1/menu1-3/index.vue"),
|
||||
component: () => import("@/views/nested/menu1/menu1-3/index.vue"),
|
||||
name: "Menu1-3",
|
||||
meta: {
|
||||
title: $t("menus.hsmenu1-3"),
|
||||
@@ -75,7 +75,7 @@ const nestedRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/nested/menu2",
|
||||
name: "Menu2",
|
||||
component: () => import("/@/views/nested/menu2/index.vue"),
|
||||
component: () => import("@/views/nested/menu2/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsmenu2"),
|
||||
keepAlive: true
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
const IFrame = () => import("/@/layout/frameView.vue");
|
||||
const IFrame = () => import("@/layout/frameView.vue");
|
||||
|
||||
const pptRouter: RouteConfigsTable = {
|
||||
path: "/ppt",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
const Layout = () => import("/@/layout/index.vue");
|
||||
const Layout = () => import("@/layout/index.vue");
|
||||
|
||||
const remainingRouter: Array<RouteConfigsTable> = [
|
||||
{
|
||||
path: "/login",
|
||||
name: "Login",
|
||||
component: () => import("/@/views/login/index.vue"),
|
||||
component: () => import("@/views/login/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hslogin"),
|
||||
showLink: false,
|
||||
@@ -26,7 +26,7 @@ const remainingRouter: Array<RouteConfigsTable> = [
|
||||
{
|
||||
path: "/redirect/:path(.*)",
|
||||
name: "Redirect",
|
||||
component: () => import("/@/layout/redirect.vue")
|
||||
component: () => import("@/layout/redirect.vue")
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -34,7 +34,7 @@ const remainingRouter: Array<RouteConfigsTable> = [
|
||||
{
|
||||
path: "/empty",
|
||||
name: "Empty",
|
||||
component: () => import("/@/views/empty/index.vue"),
|
||||
component: () => import("@/views/empty/index.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsempty"),
|
||||
showLink: false,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { $t } from "/@/plugins/i18n";
|
||||
import { $t } from "@/plugins/i18n";
|
||||
import type { RouteConfigsTable } from "/#/index";
|
||||
|
||||
const resultRouter: RouteConfigsTable = {
|
||||
@@ -13,7 +13,7 @@ const resultRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/result/success",
|
||||
name: "Success",
|
||||
component: () => import("/@/views/result/success.vue"),
|
||||
component: () => import("@/views/result/success.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsSuccess")
|
||||
}
|
||||
@@ -21,7 +21,7 @@ const resultRouter: RouteConfigsTable = {
|
||||
{
|
||||
path: "/result/fail",
|
||||
name: "Fail",
|
||||
component: () => import("/@/views/result/fail.vue"),
|
||||
component: () => import("@/views/result/fail.vue"),
|
||||
meta: {
|
||||
title: $t("menus.hsFail")
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import { router } from "./index";
|
||||
import { isProxy, toRaw } from "vue";
|
||||
import { loadEnv } from "../../build";
|
||||
import { useTimeoutFn } from "@vueuse/core";
|
||||
import { RouteConfigs } from "/@/layout/types";
|
||||
import { RouteConfigs } from "@/layout/types";
|
||||
import {
|
||||
isString,
|
||||
storageSession,
|
||||
@@ -18,14 +18,14 @@ import {
|
||||
isIncludeAllChildren
|
||||
} from "@pureadmin/utils";
|
||||
import { cloneDeep, intersection } from "lodash-unified";
|
||||
import { sessionKey, type DataInfo } from "/@/utils/auth";
|
||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
||||
const IFrame = () => import("/@/layout/frameView.vue");
|
||||
import { sessionKey, type DataInfo } from "@/utils/auth";
|
||||
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||
const IFrame = () => import("@/layout/frameView.vue");
|
||||
// https://cn.vitejs.dev/guide/features.html#glob-import
|
||||
const modulesRoutes = import.meta.glob("/src/views/**/*.{vue,tsx}");
|
||||
|
||||
// 动态路由
|
||||
import { getAsyncRoutes } from "/@/api/routes";
|
||||
import { getAsyncRoutes } from "@/api/routes";
|
||||
|
||||
/** 按照路由中meta下的rank等级升序来排序路由 */
|
||||
function ascending(arr: any[]) {
|
||||
@@ -157,6 +157,7 @@ function initRouter() {
|
||||
getAsyncRoutes().then(({ data }) => {
|
||||
if (data.length === 0) {
|
||||
usePermissionStoreHook().handleWholeMenus(data);
|
||||
resolve(router);
|
||||
} else {
|
||||
formatFlatteningRoutes(addAsyncRoutes(data)).map(
|
||||
(v: RouteRecordRaw) => {
|
||||
@@ -269,9 +270,9 @@ function addAsyncRoutes(arrRoutes: Array<RouteRecordRaw>) {
|
||||
// 父级的redirect属性取值:如果子级存在且父级的redirect属性不存在,默认取第一个子级的path;如果子级存在且父级的redirect属性存在,取存在的redirect属性,会覆盖默认值
|
||||
if (v?.children && v.children.length && !v.redirect)
|
||||
v.redirect = v.children[0].path;
|
||||
// 父级的name属性取值:如果子级存在且父级的name属性不存在,默认取第一个子级的name;如果子级存在且父级的name属性存在,取存在的name属性,会覆盖默认值
|
||||
// 父级的name属性取值:如果子级存在且父级的name属性不存在,默认取第一个子级的name;如果子级存在且父级的name属性存在,取存在的name属性,会覆盖默认值(注意:测试中发现父级的name不能和子级name重复,如果重复会造成重定向无效(跳转404),所以这里给父级的name起名的时候后面会自动加上`Parent`,避免重复)
|
||||
if (v?.children && v.children.length && !v.name)
|
||||
v.name = v.children[0].name;
|
||||
v.name = (v.children[0].name as string) + "Parent";
|
||||
if (v.meta?.frameSrc) {
|
||||
v.component = IFrame;
|
||||
} else {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { store } from "/@/store";
|
||||
import { store } from "@/store";
|
||||
import { appType } from "./types";
|
||||
import { defineStore } from "pinia";
|
||||
import { getConfig } from "/@/config";
|
||||
import { getConfig } from "@/config";
|
||||
import type { StorageConfigs } from "/#/index";
|
||||
import { deviceDetection, storageLocal } from "@pureadmin/utils";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { store } from "/@/store";
|
||||
import { store } from "@/store";
|
||||
import { defineStore } from "pinia";
|
||||
import { getConfig } from "/@/config";
|
||||
import { getConfig } from "@/config";
|
||||
import type { StorageConfigs } from "/#/index";
|
||||
import { storageLocal } from "@pureadmin/utils";
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { store } from "/@/store";
|
||||
import { store } from "@/store";
|
||||
import { isEqual } from "lodash-unified";
|
||||
import type { StorageConfigs } from "/#/index";
|
||||
import { routerArrays } from "/@/layout/types";
|
||||
import { routerArrays } from "@/layout/types";
|
||||
import { multiType, positionType } from "./types";
|
||||
import { isUrl, storageLocal } from "@pureadmin/utils";
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { store } from "/@/store";
|
||||
import { store } from "@/store";
|
||||
import { cacheType } from "./types";
|
||||
import { constantMenus } from "/@/router";
|
||||
import { ascending, filterTree, filterNoPermissionTree } from "/@/router/utils";
|
||||
import { constantMenus } from "@/router";
|
||||
import { ascending, filterTree, filterNoPermissionTree } from "@/router/utils";
|
||||
|
||||
export const usePermissionStore = defineStore({
|
||||
id: "pure-permission",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { store } from "/@/store";
|
||||
import { store } from "@/store";
|
||||
import { setType } from "./types";
|
||||
import { getConfig } from "/@/config";
|
||||
import { getConfig } from "@/config";
|
||||
|
||||
export const useSettingStore = defineStore({
|
||||
id: "pure-setting",
|
||||
|
||||
@@ -1,18 +1,13 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { store } from "/@/store";
|
||||
import { store } from "@/store";
|
||||
import { userType } from "./types";
|
||||
import { routerArrays } from "/@/layout/types";
|
||||
import { router, resetRouter } from "/@/router";
|
||||
import { routerArrays } from "@/layout/types";
|
||||
import { router, resetRouter } from "@/router";
|
||||
import { storageSession } from "@pureadmin/utils";
|
||||
import { getLogin, refreshTokenApi } from "/@/api/user";
|
||||
import { UserResult, RefreshTokenResult } from "/@/api/user";
|
||||
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
|
||||
import {
|
||||
type DataInfo,
|
||||
setToken,
|
||||
removeToken,
|
||||
sessionKey
|
||||
} from "/@/utils/auth";
|
||||
import { getLogin, refreshTokenApi } from "@/api/user";
|
||||
import { UserResult, RefreshTokenResult } from "@/api/user";
|
||||
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||
import { type DataInfo, setToken, removeToken, sessionKey } from "@/utils/auth";
|
||||
|
||||
export const useUserStore = defineStore({
|
||||
id: "pure-user",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Cookies from "js-cookie";
|
||||
import { storageSession } from "@pureadmin/utils";
|
||||
import { useUserStoreHook } from "/@/store/modules/user";
|
||||
import { useUserStoreHook } from "@/store/modules/user";
|
||||
|
||||
export interface DataInfo<T> {
|
||||
/** token */
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
### Get 请求
|
||||
|
||||
```
|
||||
import { http } from "/@/utils/http";
|
||||
import { http } from "@/utils/http";
|
||||
|
||||
// params传参
|
||||
http.request('get', '/xxx', { params: param });
|
||||
@@ -15,7 +15,7 @@ http.request('get', '/xxx?message=' + msg);
|
||||
### Post 请求
|
||||
|
||||
```
|
||||
import { http } from "/@/utils/http";
|
||||
import { http } from "@/utils/http";
|
||||
|
||||
// params传参
|
||||
http.request('post', '/xxx', { params: param });
|
||||
|
||||
@@ -1,15 +1,19 @@
|
||||
import Axios, { AxiosInstance, AxiosRequestConfig } from "axios";
|
||||
import Axios, {
|
||||
AxiosInstance,
|
||||
AxiosRequestConfig,
|
||||
CustomParamsSerializer
|
||||
} from "axios";
|
||||
import {
|
||||
PureHttpError,
|
||||
RequestMethods,
|
||||
PureHttpResponse,
|
||||
PureHttpRequestConfig
|
||||
} from "./types.d";
|
||||
import qs from "qs";
|
||||
import { stringify } from "qs";
|
||||
import NProgress from "../progress";
|
||||
// import { loadEnv } from "@build/index";
|
||||
import { getToken } from "/@/utils/auth";
|
||||
import { useUserStoreHook } from "/@/store/modules/user";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import { useUserStoreHook } from "@/store/modules/user";
|
||||
|
||||
// 加载环境变量 VITE_PROXY_DOMAIN(开发环境) VITE_PROXY_DOMAIN_REAL(打包后的线上环境)
|
||||
// const { VITE_PROXY_DOMAIN, VITE_PROXY_DOMAIN_REAL } = loadEnv();
|
||||
@@ -20,7 +24,7 @@ const defaultConfig: AxiosRequestConfig = {
|
||||
// process.env.NODE_ENV === "production"
|
||||
// ? VITE_PROXY_DOMAIN_REAL
|
||||
// : VITE_PROXY_DOMAIN,
|
||||
// 当前使用mock模拟请求,将baseURL制空,如果你的环境用到了http请求,请删除下面的baseURL启用上面的baseURL,并将第10行、15行代码注释取消
|
||||
// 当前使用mock模拟请求,将baseURL制空,如果你的环境用到了http请求,请删除下面的baseURL启用上面的baseURL,并将第14行、19行代码注释取消
|
||||
baseURL: "",
|
||||
timeout: 10000,
|
||||
headers: {
|
||||
@@ -28,8 +32,10 @@ const defaultConfig: AxiosRequestConfig = {
|
||||
"Content-Type": "application/json",
|
||||
"X-Requested-With": "XMLHttpRequest"
|
||||
},
|
||||
// 数组格式参数序列化
|
||||
paramsSerializer: params => qs.stringify(params, { indices: false })
|
||||
// 数组格式参数序列化(https://github.com/axios/axios/issues/5142)
|
||||
paramsSerializer: {
|
||||
serialize: stringify as unknown as CustomParamsSerializer
|
||||
}
|
||||
};
|
||||
|
||||
class PureHttp {
|
||||
@@ -59,7 +65,7 @@ class PureHttp {
|
||||
PureHttp.initConfig.beforeRequestCallback($config);
|
||||
return $config;
|
||||
}
|
||||
/** 请求白名单(通过设置请求白名单,防止token过期后再请求造成的死循环问题) */
|
||||
/** 请求白名单,放置一些不需要token的接口(通过设置请求白名单,防止token过期后再请求造成的死循环问题) */
|
||||
const whiteList = ["/refreshToken", "/login"];
|
||||
return whiteList.some(v => config.url.indexOf(v) > -1)
|
||||
? config
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// 响应式storage
|
||||
import { App } from "vue";
|
||||
import Storage from "responsive-storage";
|
||||
import { routerArrays } from "/@/layout/types";
|
||||
import { routerArrays } from "@/layout/types";
|
||||
|
||||
const nameSpace = "responsive-";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import ReBarcode from "/@/components/ReBarcode";
|
||||
import ReBarcode from "@/components/ReBarcode";
|
||||
|
||||
defineOptions({
|
||||
name: "BarCode"
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
regionDataPlus,
|
||||
regionData,
|
||||
CodeToText
|
||||
} from "/@/utils/chinaArea";
|
||||
} from "@/utils/chinaArea";
|
||||
import { ref } from "vue";
|
||||
|
||||
defineOptions({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import { IconSelect } from "/@/components/ReIcon";
|
||||
import { IconSelect } from "@/components/ReIcon";
|
||||
|
||||
defineOptions({
|
||||
name: "IconSelect"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from "vue";
|
||||
import { cloneDeep } from "lodash-unified";
|
||||
import { transformI18n } from "/@/plugins/i18n";
|
||||
import ElTreeLine from "/@/components/ReTreeLine";
|
||||
import { transformI18n } from "@/plugins/i18n";
|
||||
import ElTreeLine from "@/components/ReTreeLine";
|
||||
import { extractPathList, deleteChildren } from "@pureadmin/utils";
|
||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
||||
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||
|
||||
defineOptions({
|
||||
name: "LineTree"
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
import { ref, computed } from "vue";
|
||||
import { cloneDeep } from "lodash-unified";
|
||||
import type { ElTreeV2 } from "element-plus";
|
||||
import { transformI18n } from "/@/plugins/i18n";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { transformI18n } from "@/plugins/i18n";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
import { extractPathList, deleteChildren } from "@pureadmin/utils";
|
||||
import { usePermissionStoreHook } from "/@/store/modules/permission";
|
||||
import { usePermissionStoreHook } from "@/store/modules/permission";
|
||||
import type { TreeNode } from "element-plus/es/components/tree-v2/src/types";
|
||||
|
||||
defineOptions({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import Print from "/@/utils/print";
|
||||
import Print from "@/utils/print";
|
||||
import { reactive, ref } from "vue";
|
||||
import { VxeTablePropTypes } from "vxe-table";
|
||||
import Line from "../welcome/components/Line.vue";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, unref } from "vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
import avatars from "/@/assets/avatars.jpg";
|
||||
import ReQrcode from "/@/components/ReQrcode";
|
||||
import avatars from "@/assets/avatars.jpg";
|
||||
import ReQrcode from "@/components/ReQrcode";
|
||||
|
||||
defineOptions({
|
||||
name: "QrCode"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { useRenderFlicker } from "/@/components/ReFlicker";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
import { useRenderFlicker } from "@/components/ReFlicker";
|
||||
|
||||
defineOptions({
|
||||
name: "TimeLine"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { ReNormalCountTo, ReboundCountTo } from "/@/components/ReCountTo";
|
||||
import { ReNormalCountTo, ReboundCountTo } from "@/components/ReCountTo";
|
||||
|
||||
defineOptions({
|
||||
name: "CountTo"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, nextTick } from "vue";
|
||||
import Cropper from "/@/components/ReCropper";
|
||||
import Cropper from "@/components/ReCropper";
|
||||
import img from "./picture.jpeg";
|
||||
|
||||
defineOptions({
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import Sortable from "sortablejs";
|
||||
import { ref, onMounted } from "vue";
|
||||
import draggable from "vuedraggable/src/vuedraggable";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
|
||||
defineOptions({
|
||||
name: "Draggable"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Amap } from "/@/components/ReMap";
|
||||
import { Amap } from "@/components/ReMap";
|
||||
|
||||
defineOptions({
|
||||
name: "Map"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, unref } from "vue";
|
||||
import { templateRef } from "@vueuse/core";
|
||||
import SeamlessScroll from "/@/components/ReSeamlessScroll";
|
||||
import SeamlessScroll from "@/components/ReSeamlessScroll";
|
||||
|
||||
defineOptions({
|
||||
name: "SeamlessScroll"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from "vue";
|
||||
import Selector from "/@/components/ReSelector";
|
||||
import Selector from "@/components/ReSelector";
|
||||
|
||||
defineOptions({
|
||||
name: "Selector"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import splitpane, { ContextProps } from "/@/components/ReSplitPane";
|
||||
import splitpane, { ContextProps } from "@/components/ReSplitPane";
|
||||
import { reactive } from "vue";
|
||||
|
||||
defineOptions({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import TypeIt from "/@/components/ReTypeit";
|
||||
import TypeIt from "@/components/ReTypeit";
|
||||
|
||||
defineOptions({
|
||||
name: "Typeit"
|
||||
|
||||
@@ -5,7 +5,7 @@ import volume from "xgplayer/es/controls/volume";
|
||||
import { deviceDetection } from "@pureadmin/utils";
|
||||
import screenShot from "xgplayer/es/controls/screenShot";
|
||||
import playbackRate from "xgplayer/es/controls/playbackRate";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
|
||||
defineOptions({
|
||||
name: "Video"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import "@wangeditor/editor/dist/css/style.css"; // 引入 css
|
||||
import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
import { onBeforeUnmount, ref, shallowRef, onMounted } from "vue";
|
||||
|
||||
defineOptions({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import back from "/@/assets/svg/back.svg?component";
|
||||
import back from "@/assets/svg/back.svg?component";
|
||||
|
||||
defineOptions({
|
||||
name: "Empty"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import noAccess from "/@/assets/status/403.svg?component";
|
||||
import noAccess from "@/assets/status/403.svg?component";
|
||||
|
||||
defineOptions({
|
||||
name: "403"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import noExist from "/@/assets/status/404.svg?component";
|
||||
import noExist from "@/assets/status/404.svg?component";
|
||||
|
||||
defineOptions({
|
||||
name: "404"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import noServer from "/@/assets/status/500.svg?component";
|
||||
import noServer from "@/assets/status/500.svg?component";
|
||||
|
||||
defineOptions({
|
||||
name: "500"
|
||||
|
||||
@@ -5,11 +5,11 @@ import "@logicflow/extension/lib/style/index.css";
|
||||
|
||||
import LogicFlow from "@logicflow/core";
|
||||
import { ref, unref, onMounted } from "vue";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { BpmnNode } from "/@/components/ReFlowChart/src/config";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
import { BpmnNode } from "@/components/ReFlowChart/src/config";
|
||||
import { Snapshot, BpmnElement, Menu } from "@logicflow/extension";
|
||||
import { Control, NodePanel, DataDialog } from "/@/components/ReFlowChart";
|
||||
import { toLogicflowData } from "/@/components/ReFlowChart/src/adpterForTurbo";
|
||||
import { Control, NodePanel, DataDialog } from "@/components/ReFlowChart";
|
||||
import { toLogicflowData } from "@/components/ReFlowChart/src/adpterForTurbo";
|
||||
|
||||
defineOptions({
|
||||
name: "FlowChart"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, PropType } from "vue";
|
||||
import shopIcon from "/@/assets/svg/shop.svg?component";
|
||||
import laptopIcon from "/@/assets/svg/laptop.svg?component";
|
||||
import serviceIcon from "/@/assets/svg/service.svg?component";
|
||||
import calendarIcon from "/@/assets/svg/calendar.svg?component";
|
||||
import userAvatarIcon from "/@/assets/svg/user_avatar.svg?component";
|
||||
import shopIcon from "@/assets/svg/shop.svg?component";
|
||||
import laptopIcon from "@/assets/svg/laptop.svg?component";
|
||||
import serviceIcon from "@/assets/svg/service.svg?component";
|
||||
import calendarIcon from "@/assets/svg/calendar.svg?component";
|
||||
import userAvatarIcon from "@/assets/svg/user_avatar.svg?component";
|
||||
|
||||
defineOptions({
|
||||
name: "ReCard"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import Card from "./components/Card.vue";
|
||||
import { getCardList } from "/@/api/list";
|
||||
import { getCardList } from "@/api/list";
|
||||
import { ref, onMounted, nextTick } from "vue";
|
||||
import dialogForm from "./components/DialogForm.vue";
|
||||
import { ElMessage, ElMessageBox } from "element-plus";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
|
||||
defineOptions({
|
||||
name: "ListCard"
|
||||
|
||||
@@ -5,10 +5,10 @@ import Motion from "../utils/motion";
|
||||
import { phoneRules } from "../utils/rule";
|
||||
import { message } from "@pureadmin/components";
|
||||
import type { FormInstance } from "element-plus";
|
||||
import { $t, transformI18n } from "/@/plugins/i18n";
|
||||
import { $t, transformI18n } from "@/plugins/i18n";
|
||||
import { useVerifyCode } from "../utils/verifyCode";
|
||||
import { useUserStoreHook } from "/@/store/modules/user";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { useUserStoreHook } from "@/store/modules/user";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
|
||||
const { t } = useI18n();
|
||||
const loading = ref(false);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from "vue-i18n";
|
||||
import Motion from "../utils/motion";
|
||||
import ReQrcode from "/@/components/ReQrcode";
|
||||
import { useUserStoreHook } from "/@/store/modules/user";
|
||||
import ReQrcode from "@/components/ReQrcode";
|
||||
import { useUserStoreHook } from "@/store/modules/user";
|
||||
|
||||
const { t } = useI18n();
|
||||
</script>
|
||||
|
||||
@@ -6,9 +6,9 @@ import { updateRules } from "../utils/rule";
|
||||
import { message } from "@pureadmin/components";
|
||||
import type { FormInstance } from "element-plus";
|
||||
import { useVerifyCode } from "../utils/verifyCode";
|
||||
import { $t, transformI18n } from "/@/plugins/i18n";
|
||||
import { useUserStoreHook } from "/@/store/modules/user";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { $t, transformI18n } from "@/plugins/i18n";
|
||||
import { useUserStoreHook } from "@/store/modules/user";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
|
||||
const { t } = useI18n();
|
||||
const checked = ref(false);
|
||||
|
||||
@@ -6,9 +6,9 @@ import { updateRules } from "../utils/rule";
|
||||
import { message } from "@pureadmin/components";
|
||||
import type { FormInstance } from "element-plus";
|
||||
import { useVerifyCode } from "../utils/verifyCode";
|
||||
import { $t, transformI18n } from "/@/plugins/i18n";
|
||||
import { useUserStoreHook } from "/@/store/modules/user";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { $t, transformI18n } from "@/plugins/i18n";
|
||||
import { useUserStoreHook } from "@/store/modules/user";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
|
||||
const { t } = useI18n();
|
||||
const loading = ref(false);
|
||||
|
||||
@@ -12,27 +12,27 @@ import Motion from "./utils/motion";
|
||||
import { useRouter } from "vue-router";
|
||||
import { loginRules } from "./utils/rule";
|
||||
import phone from "./components/phone.vue";
|
||||
import TypeIt from "/@/components/ReTypeit";
|
||||
import TypeIt from "@/components/ReTypeit";
|
||||
import qrCode from "./components/qrCode.vue";
|
||||
import regist from "./components/regist.vue";
|
||||
import update from "./components/update.vue";
|
||||
import { initRouter } from "/@/router/utils";
|
||||
import { useNav } from "/@/layout/hooks/useNav";
|
||||
import { initRouter } from "@/router/utils";
|
||||
import { useNav } from "@/layout/hooks/useNav";
|
||||
import { message } from "@pureadmin/components";
|
||||
import type { FormInstance } from "element-plus";
|
||||
import { $t, transformI18n } from "/@/plugins/i18n";
|
||||
import { $t, transformI18n } from "@/plugins/i18n";
|
||||
import { operates, thirdParty } from "./utils/enums";
|
||||
import { useLayout } from "/@/layout/hooks/useLayout";
|
||||
import { useUserStoreHook } from "/@/store/modules/user";
|
||||
import { useLayout } from "@/layout/hooks/useLayout";
|
||||
import { useUserStoreHook } from "@/store/modules/user";
|
||||
import { bg, avatar, currentWeek } from "./utils/static";
|
||||
import { ReImageVerify } from "/@/components/ReImageVerify";
|
||||
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
||||
import { useTranslationLang } from "/@/layout/hooks/useTranslationLang";
|
||||
import { useDataThemeChange } from "/@/layout/hooks/useDataThemeChange";
|
||||
import { ReImageVerify } from "@/components/ReImageVerify";
|
||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||
import { useTranslationLang } from "@/layout/hooks/useTranslationLang";
|
||||
import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange";
|
||||
|
||||
import dayIcon from "/@/assets/svg/day.svg?component";
|
||||
import darkIcon from "/@/assets/svg/dark.svg?component";
|
||||
import globalization from "/@/assets/svg/globalization.svg?component";
|
||||
import dayIcon from "@/assets/svg/day.svg?component";
|
||||
import darkIcon from "@/assets/svg/dark.svg?component";
|
||||
import globalization from "@/assets/svg/globalization.svg?component";
|
||||
|
||||
defineOptions({
|
||||
name: "Login"
|
||||
@@ -296,7 +296,7 @@ watch(imgCode, value => {
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
@import url("/@/style/login.css");
|
||||
@import url("@/style/login.css");
|
||||
</style>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user