mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-11 21:12:50 +00:00
改用pnpm
This commit is contained in:
parent
6210f18a8b
commit
1e1296d14d
@ -30,16 +30,14 @@ export function virtual(): Plugin {
|
||||
},
|
||||
async handleHotUpdate({ file, server }) {
|
||||
// 代码保存时触发
|
||||
if (!file.includes("build/cool/dist")) {
|
||||
const { service } = await createEps();
|
||||
|
||||
if (!["dist"].some((e) => file.includes(e))) {
|
||||
createEps().then((data) => {
|
||||
// 通知客户端刷新
|
||||
server.ws.send({
|
||||
type: "custom",
|
||||
event: "eps-update",
|
||||
data: {
|
||||
service
|
||||
}
|
||||
data
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
5068
pnpm-lock.yaml
generated
Normal file
5068
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user