mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 06:02:38 +08:00
优化
This commit is contained in:
parent
e391548a43
commit
de2869bb8a
@ -37,7 +37,7 @@
|
|||||||
"xlsx": "^0.18.5"
|
"xlsx": "^0.18.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cool-vue/vite-plugin": "^7.1.0",
|
"@cool-vue/vite-plugin": "^7.1.1",
|
||||||
"@types/file-saver": "^2.0.7",
|
"@types/file-saver": "^2.0.7",
|
||||||
"@types/lodash-es": "^4.17.8",
|
"@types/lodash-es": "^4.17.8",
|
||||||
"@types/mockjs": "^1.0.7",
|
"@types/mockjs": "^1.0.7",
|
||||||
|
2
packages/vite-plugin/dist/index.js
vendored
2
packages/vite-plugin/dist/index.js
vendored
@ -730,7 +730,7 @@
|
|||||||
name: "vite-cool-virtual",
|
name: "vite-cool-virtual",
|
||||||
enforce: "pre",
|
enforce: "pre",
|
||||||
handleHotUpdate({ file, server }) {
|
handleHotUpdate({ file, server }) {
|
||||||
if (!["pages.json", "dist", "eps.json"].some((e) => file.includes(e))) {
|
if (!["pages.json", "dist", "build/cool"].some((e) => file.includes(e))) {
|
||||||
createCtx();
|
createCtx();
|
||||||
createEps().then((data) => {
|
createEps().then((data) => {
|
||||||
// 通知客户端刷新
|
// 通知客户端刷新
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cool-vue/vite-plugin",
|
"name": "@cool-vue/vite-plugin",
|
||||||
"version": "7.1.0",
|
"version": "7.1.1",
|
||||||
"description": "cool-admin/cool-uni builder",
|
"description": "cool-admin/cool-uni builder",
|
||||||
"main": "/dist/index.js",
|
"main": "/dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -12,7 +12,7 @@ export async function virtual(): Promise<Plugin> {
|
|||||||
name: "vite-cool-virtual",
|
name: "vite-cool-virtual",
|
||||||
enforce: "pre",
|
enforce: "pre",
|
||||||
handleHotUpdate({ file, server }) {
|
handleHotUpdate({ file, server }) {
|
||||||
if (!["pages.json", "dist", "eps.json"].some((e) => file.includes(e))) {
|
if (!["pages.json", "dist", "build/cool"].some((e) => file.includes(e))) {
|
||||||
createCtx();
|
createCtx();
|
||||||
|
|
||||||
createEps().then((data) => {
|
createEps().then((data) => {
|
||||||
|
@ -86,8 +86,8 @@ dependencies:
|
|||||||
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@cool-vue/vite-plugin':
|
'@cool-vue/vite-plugin':
|
||||||
specifier: ^7.1.0
|
specifier: ^7.1.1
|
||||||
version: 7.1.0
|
version: 7.1.1
|
||||||
'@types/file-saver':
|
'@types/file-saver':
|
||||||
specifier: ^2.0.7
|
specifier: ^2.0.7
|
||||||
version: 2.0.7
|
version: 2.0.7
|
||||||
@ -482,8 +482,8 @@ packages:
|
|||||||
- typescript
|
- typescript
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@cool-vue/vite-plugin@7.1.0:
|
/@cool-vue/vite-plugin@7.1.1:
|
||||||
resolution: {integrity: sha512-2UGMumnSdAlAlID0jJLLbTv8qc3U6pdfjvTOGuFtRlBbnj3R1qW+znlmjgDk9ifLAk/ra90ghCZ6sLsNADeFrg==}
|
resolution: {integrity: sha512-bCf0+ICwjYWYdS3DOrgr74YulvQLVjzNKPiTeL32pTyTecmFSOqbiQ+PbVYxIPHtZjnNjupWOz5vYm1kmBscWQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vue/compiler-sfc': 3.4.25
|
'@vue/compiler-sfc': 3.4.25
|
||||||
axios: 1.6.8
|
axios: 1.6.8
|
||||||
|
Loading…
Reference in New Issue
Block a user