Commit 7c5b6acf authored by Evan You's avatar Evan You

fix: remove .vue from fake resourcePath to avoid double match

parent d04f9cf1
......@@ -114,7 +114,8 @@ function cloneRule (rule, normalizedRule, vueUse) {
if (resource && parsed.lang == null) {
return false
}
if (resource && !resource(`${currentResource}.${parsed.lang}`)) {
const fakeResourcePath = `${currentResource.replace(/\.vue$/, '')}.${parsed.lang}`
if (resource && !resource(fakeResourcePath)) {
return false
}
if (resourceQuery && !resourceQuery(query)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment