修复上传图片404问题
This commit is contained in:
@@ -85,7 +85,7 @@ export default defineComponent({
|
||||
const routeName = newRoute.name as string
|
||||
const shouldCache = newRoute.meta?.cache === true
|
||||
if (shouldCache && routeName && !data.cachedRoutes.includes(routeName)) {
|
||||
if(routeName == 'toolsPage' && !route.query?.id)return
|
||||
if(routeName == 'tools' && !route.query?.id)return
|
||||
data.cachedRoutes.push(routeName)// 保证缓存只有一个项目
|
||||
} else if ((!route.query?.id && shouldCache) || (!shouldCache && routeName && data.cachedRoutes.includes(routeName))) {
|
||||
// } else if (!shouldCache && routeName && data.cachedRoutes.includes(routeName)) {
|
||||
@@ -226,7 +226,7 @@ export default defineComponent({
|
||||
storeData.positionList = position
|
||||
store.commit('setProbject',storeData)
|
||||
// setChatData()
|
||||
if(route.name == 'toolsPage'){
|
||||
if(route.name == 'tools'){
|
||||
getCollection('tools',null)
|
||||
}else{
|
||||
getCollection('design',null)
|
||||
|
||||
Reference in New Issue
Block a user