From de2869bb8a76e5fdd06117fa2eb369e3ded3b212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=99=E9=83=BD=E6=B2=A1=E7=94=A8?= <615206459@qq.com> Date: Fri, 26 Apr 2024 21:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- packages/vite-plugin/dist/index.js | 2 +- packages/vite-plugin/package.json | 2 +- packages/vite-plugin/src/virtual.ts | 2 +- pnpm-lock.yaml | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 6c6fe83..af58f99 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "xlsx": "^0.18.5" }, "devDependencies": { - "@cool-vue/vite-plugin": "^7.1.0", + "@cool-vue/vite-plugin": "^7.1.1", "@types/file-saver": "^2.0.7", "@types/lodash-es": "^4.17.8", "@types/mockjs": "^1.0.7", diff --git a/packages/vite-plugin/dist/index.js b/packages/vite-plugin/dist/index.js index 5b93daf..9aa7175 100644 --- a/packages/vite-plugin/dist/index.js +++ b/packages/vite-plugin/dist/index.js @@ -730,7 +730,7 @@ name: "vite-cool-virtual", enforce: "pre", 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(); createEps().then((data) => { // 通知客户端刷新 diff --git a/packages/vite-plugin/package.json b/packages/vite-plugin/package.json index dcdeb78..79e6761 100644 --- a/packages/vite-plugin/package.json +++ b/packages/vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@cool-vue/vite-plugin", - "version": "7.1.0", + "version": "7.1.1", "description": "cool-admin/cool-uni builder", "main": "/dist/index.js", "scripts": { diff --git a/packages/vite-plugin/src/virtual.ts b/packages/vite-plugin/src/virtual.ts index 6760fea..764d436 100644 --- a/packages/vite-plugin/src/virtual.ts +++ b/packages/vite-plugin/src/virtual.ts @@ -12,7 +12,7 @@ export async function virtual(): Promise { name: "vite-cool-virtual", enforce: "pre", 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(); createEps().then((data) => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e5da87c..e54ad2f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -86,8 +86,8 @@ dependencies: devDependencies: '@cool-vue/vite-plugin': - specifier: ^7.1.0 - version: 7.1.0 + specifier: ^7.1.1 + version: 7.1.1 '@types/file-saver': specifier: ^2.0.7 version: 2.0.7 @@ -482,8 +482,8 @@ packages: - typescript dev: false - /@cool-vue/vite-plugin@7.1.0: - resolution: {integrity: sha512-2UGMumnSdAlAlID0jJLLbTv8qc3U6pdfjvTOGuFtRlBbnj3R1qW+znlmjgDk9ifLAk/ra90ghCZ6sLsNADeFrg==} + /@cool-vue/vite-plugin@7.1.1: + resolution: {integrity: sha512-bCf0+ICwjYWYdS3DOrgr74YulvQLVjzNKPiTeL32pTyTecmFSOqbiQ+PbVYxIPHtZjnNjupWOz5vYm1kmBscWQ==} dependencies: '@vue/compiler-sfc': 3.4.25 axios: 1.6.8