修复上传图片404问题
This commit is contained in:
@@ -373,8 +373,6 @@ export default defineComponent({
|
||||
email: this.forgetPasswordEmail,
|
||||
operationType: "FORGET_PWD",
|
||||
};
|
||||
this.frogetPasswordStep = 2;
|
||||
(this.forgetEmailCode = ["", "", "", "", "", ""]), this.createTimer();
|
||||
Https.axiosPost(Https.httpUrls.accountSendEmail, data).then((rv: any) => {
|
||||
if (rv) {
|
||||
this.frogetPasswordStep = 2;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -92,7 +92,7 @@ export default defineComponent({
|
||||
(query:any, oldQuery:any) => {
|
||||
if(oldQuery && query == oldQuery)return
|
||||
const key = Object.keys(query)?.[0]
|
||||
if(route.name == 'toolsPage' && key){
|
||||
if(route.name == 'tools' && key){
|
||||
data.openType = query[key]
|
||||
nextTick(()=>{
|
||||
open(query[key])
|
||||
|
||||
@@ -67,7 +67,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
children: [
|
||||
{
|
||||
path: "tools",
|
||||
name: "toolsPage",
|
||||
name: "tools",
|
||||
meta: { enter: "all",cache:true },
|
||||
component: () => import("@/views/HomeView/Tools.vue"),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user