style: remove log
This commit is contained in:
parent
a16ecc0159
commit
40e91e75a9
@ -2296,8 +2296,6 @@ export default {
|
|||||||
this.handleLink(this.pathList[this.pathList.length - 2],this.pathList.length - 2, undefined, undefined, keywordQuery)
|
this.handleLink(this.pathList[this.pathList.length - 2],this.pathList.length - 2, undefined, undefined, keywordQuery)
|
||||||
},
|
},
|
||||||
handleLink(item, index, unPushLink, unRefresh, keywordQuery) {
|
handleLink(item, index, unPushLink, unRefresh, keywordQuery) {
|
||||||
console.log('handleLink item', item)
|
|
||||||
console.log('handleLink: this.pathList', this.pathList)
|
|
||||||
this.pathList.splice(this.pathList.findIndex((v, i) => i === index + 1),this.pathList.length - (index + 1))
|
this.pathList.splice(this.pathList.findIndex((v, i) => i === index + 1),this.pathList.length - (index + 1))
|
||||||
if (item && item.search) {
|
if (item && item.search) {
|
||||||
if (item.searchKey) {
|
if (item.searchKey) {
|
||||||
@ -2329,7 +2327,6 @@ export default {
|
|||||||
if (searchPathIndex < 0) {
|
if (searchPathIndex < 0) {
|
||||||
keywordQuery = ''
|
keywordQuery = ''
|
||||||
}
|
}
|
||||||
console.log('keywordQuery', keywordQuery)
|
|
||||||
this.$router.push(`?vmode=${this.vmode}&path=${encodeURI(this.path)}${queryFolder ? '&folder='+queryFolder : ''}${queryTagId}${basePath}${keywordQuery}`);
|
this.$router.push(`?vmode=${this.vmode}&path=${encodeURI(this.path)}${queryFolder ? '&folder='+queryFolder : ''}${queryTagId}${basePath}${keywordQuery}`);
|
||||||
}
|
}
|
||||||
if (!unRefresh) {
|
if (!unRefresh) {
|
||||||
@ -2690,16 +2687,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('loadData1: this.path', this.path)
|
|
||||||
|
|
||||||
const path = this.$route.query.path ? this.$route.query.path : '/'
|
const path = this.$route.query.path ? this.$route.query.path : '/'
|
||||||
const basePath = this.$route.query.basePath ? this.$route.query.basePath : '/'
|
const basePath = this.$route.query.basePath ? this.$route.query.basePath : '/'
|
||||||
this.path = basePath + path
|
this.path = basePath + path
|
||||||
this.path = this.path.replace(/\\/g, '/')
|
this.path = this.path.replace(/\\/g, '/')
|
||||||
this.path = this.path.replace(/\/\//g, '/')
|
this.path = this.path.replace(/\/\//g, '/')
|
||||||
|
|
||||||
console.log('loadData2: this.path', this.path)
|
|
||||||
|
|
||||||
this.$store.dispatch('updateMessage', {event: 'storageTypeChange', data: storageType})
|
this.$store.dispatch('updateMessage', {event: 'storageTypeChange', data: storageType})
|
||||||
},
|
},
|
||||||
// 设置挂载文件的用户名(文件的所有者)
|
// 设置挂载文件的用户名(文件的所有者)
|
||||||
@ -2740,12 +2733,10 @@ export default {
|
|||||||
item1["searchKey"] = key
|
item1["searchKey"] = key
|
||||||
this.pathList.push(item1)
|
this.pathList.push(item1)
|
||||||
}
|
}
|
||||||
console.log('searchFile: this.pathList', this.pathList)
|
|
||||||
const queryTagId = this.$route.query.tagId ? `&tagId=${this.$route.query.tagId}` : ''
|
const queryTagId = this.$route.query.tagId ? `&tagId=${this.$route.query.tagId}` : ''
|
||||||
const folder = this.$route.query.folder ? `&folder=${this.$route.query.folder}` : ''
|
const folder = this.$route.query.folder ? `&folder=${this.$route.query.folder}` : ''
|
||||||
const basePath = this.getBasePath()
|
const basePath = this.getBasePath()
|
||||||
const keyword = key ? `&keyword=${key}` : ''
|
const keyword = key ? `&keyword=${key}` : ''
|
||||||
console.log('this.path', this.path, this.$route.query.path)
|
|
||||||
const path = this.path ? encodeURI(this.path.replace(this.basePath, '/')) : "/"
|
const path = this.path ? encodeURI(this.path.replace(this.basePath, '/')) : "/"
|
||||||
this.$router.push(`?vmode=${this.vmode}&path=${path}${keyword}${queryTagId}${basePath}${folder}`)
|
this.$router.push(`?vmode=${this.vmode}&path=${path}${keyword}${queryTagId}${basePath}${folder}`)
|
||||||
api.searchFile({
|
api.searchFile({
|
||||||
@ -4089,16 +4080,11 @@ export default {
|
|||||||
this.pagination.pageIndex = 1;
|
this.pagination.pageIndex = 1;
|
||||||
const folder = row.id ? `&folder=${row.id}` : ''
|
const folder = row.id ? `&folder=${row.id}` : ''
|
||||||
const path = this.$route.query.path ? `&path=${this.$route.query.path}` : ''
|
const path = this.$route.query.path ? `&path=${this.$route.query.path}` : ''
|
||||||
console.log('this.listModeSearch: this.path', this.path)
|
|
||||||
console.log('this.listModeSearch: this.pathList', this.pathList)
|
|
||||||
const basePath = this.getBasePath()
|
const basePath = this.getBasePath()
|
||||||
this.$router.push(`?vmode=${this.vmode}${path}${keyword}${folder}${queryTagId}${basePath}`);
|
this.$router.push(`?vmode=${this.vmode}${path}${keyword}${folder}${queryTagId}${basePath}`);
|
||||||
this.searchFileAndOpenDir(row.id);
|
this.searchFileAndOpenDir(row.id);
|
||||||
} else {
|
} else {
|
||||||
let notHomePage = this.$route.path.length > 1
|
let notHomePage = this.$route.path.length > 1
|
||||||
console.log('notHomePage', notHomePage)
|
|
||||||
console.log('this.path', this.path)
|
|
||||||
console.log('row.path', row.path)
|
|
||||||
if (notHomePage && this.path + "/" !== row.path && this.basePath.length === 1) {
|
if (notHomePage && this.path + "/" !== row.path && this.basePath.length === 1) {
|
||||||
this.basePath = row.path
|
this.basePath = row.path
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user