mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-05 08:49:47 +08:00
Update mock-server.js
fix win7 win10 path
This commit is contained in:
parent
806f960a80
commit
1e3deb4f3f
@ -18,7 +18,7 @@ function registerRoutes(app) {
|
||||
|
||||
function unregisterRoutes() {
|
||||
Object.keys(require.cache).forEach(i => {
|
||||
if (i.includes('/mock')) {
|
||||
if (i.includes('/mock') || i.includes('\\mock') || i.includes('./mock')) {
|
||||
delete require.cache[require.resolve(i)]
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user