修复上传图片404问题
This commit is contained in:
@@ -373,8 +373,6 @@ export default defineComponent({
|
|||||||
email: this.forgetPasswordEmail,
|
email: this.forgetPasswordEmail,
|
||||||
operationType: "FORGET_PWD",
|
operationType: "FORGET_PWD",
|
||||||
};
|
};
|
||||||
this.frogetPasswordStep = 2;
|
|
||||||
(this.forgetEmailCode = ["", "", "", "", "", ""]), this.createTimer();
|
|
||||||
Https.axiosPost(Https.httpUrls.accountSendEmail, data).then((rv: any) => {
|
Https.axiosPost(Https.httpUrls.accountSendEmail, data).then((rv: any) => {
|
||||||
if (rv) {
|
if (rv) {
|
||||||
this.frogetPasswordStep = 2;
|
this.frogetPasswordStep = 2;
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export default defineComponent({
|
|||||||
const routeName = newRoute.name as string
|
const routeName = newRoute.name as string
|
||||||
const shouldCache = newRoute.meta?.cache === true
|
const shouldCache = newRoute.meta?.cache === true
|
||||||
if (shouldCache && routeName && !data.cachedRoutes.includes(routeName)) {
|
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)// 保证缓存只有一个项目
|
data.cachedRoutes.push(routeName)// 保证缓存只有一个项目
|
||||||
} else if ((!route.query?.id && shouldCache) || (!shouldCache && routeName && data.cachedRoutes.includes(routeName))) {
|
} else if ((!route.query?.id && shouldCache) || (!shouldCache && routeName && data.cachedRoutes.includes(routeName))) {
|
||||||
// } else if (!shouldCache && routeName && data.cachedRoutes.includes(routeName)) {
|
// } else if (!shouldCache && routeName && data.cachedRoutes.includes(routeName)) {
|
||||||
@@ -226,7 +226,7 @@ export default defineComponent({
|
|||||||
storeData.positionList = position
|
storeData.positionList = position
|
||||||
store.commit('setProbject',storeData)
|
store.commit('setProbject',storeData)
|
||||||
// setChatData()
|
// setChatData()
|
||||||
if(route.name == 'toolsPage'){
|
if(route.name == 'tools'){
|
||||||
getCollection('tools',null)
|
getCollection('tools',null)
|
||||||
}else{
|
}else{
|
||||||
getCollection('design',null)
|
getCollection('design',null)
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export default defineComponent({
|
|||||||
(query:any, oldQuery:any) => {
|
(query:any, oldQuery:any) => {
|
||||||
if(oldQuery && query == oldQuery)return
|
if(oldQuery && query == oldQuery)return
|
||||||
const key = Object.keys(query)?.[0]
|
const key = Object.keys(query)?.[0]
|
||||||
if(route.name == 'toolsPage' && key){
|
if(route.name == 'tools' && key){
|
||||||
data.openType = query[key]
|
data.openType = query[key]
|
||||||
nextTick(()=>{
|
nextTick(()=>{
|
||||||
open(query[key])
|
open(query[key])
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "tools",
|
path: "tools",
|
||||||
name: "toolsPage",
|
name: "tools",
|
||||||
meta: { enter: "all",cache:true },
|
meta: { enter: "all",cache:true },
|
||||||
component: () => import("@/views/HomeView/Tools.vue"),
|
component: () => import("@/views/HomeView/Tools.vue"),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user