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"
|
||||
},
|
||||
"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",
|
||||
|
2
packages/vite-plugin/dist/index.js
vendored
2
packages/vite-plugin/dist/index.js
vendored
@ -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) => {
|
||||
// 通知客户端刷新
|
||||
|
@ -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": {
|
||||
|
@ -12,7 +12,7 @@ export async function virtual(): Promise<Plugin> {
|
||||
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) => {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user