适配https
去掉 console.log
This commit is contained in:
parent
56e7170f74
commit
a7ed85d2db
@ -20,7 +20,6 @@ export const addCodeBtn = _ => {
|
|||||||
})
|
})
|
||||||
//监听复制按钮点击事件
|
//监听复制按钮点击事件
|
||||||
$('pre .code i.code-copy').click(e => {
|
$('pre .code i.code-copy').click(e => {
|
||||||
console.log("copy")
|
|
||||||
let text = $(e.target).siblings('code').text()
|
let text = $(e.target).siblings('code').text()
|
||||||
let element = $('<textarea>' + text + '</textarea>')
|
let element = $('<textarea>' + text + '</textarea>')
|
||||||
$('body').append(element)
|
$('body').append(element)
|
||||||
|
|||||||
@ -30,7 +30,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
console.log('emptyFile - created')
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -142,7 +142,6 @@
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
data.newFolder = false
|
data.newFolder = false
|
||||||
data.id = res.data.id
|
data.id = res.data.id
|
||||||
console.log(data)
|
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
window.event.preventDefault()
|
window.event.preventDefault()
|
||||||
window.event.stopPropagation()
|
window.event.stopPropagation()
|
||||||
|
|||||||
@ -100,7 +100,6 @@ export default {
|
|||||||
const isMac = navigator.platform.startsWith('Mac');
|
const isMac = navigator.platform.startsWith('Mac');
|
||||||
const {key, code, keyCode, ctrlKey, metaKey} = event;
|
const {key, code, keyCode, ctrlKey, metaKey} = event;
|
||||||
const isCmd = isMac && metaKey || !isMac && ctrlKey;
|
const isCmd = isMac && metaKey || !isMac && ctrlKey;
|
||||||
console.log('keydown',isCmd)
|
|
||||||
if (!isCmd) {
|
if (!isCmd) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2259,7 +2259,6 @@
|
|||||||
this.favoriteOperating(false)
|
this.favoriteOperating(false)
|
||||||
break
|
break
|
||||||
case 'details':
|
case 'details':
|
||||||
console.log(this.rowContextData)
|
|
||||||
this.drawer = true
|
this.drawer = true
|
||||||
break
|
break
|
||||||
case 'rename':
|
case 'rename':
|
||||||
@ -2570,12 +2569,13 @@
|
|||||||
if(window.location.port.length > 0){
|
if(window.location.port.length > 0){
|
||||||
host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
|
host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
|
||||||
}
|
}
|
||||||
|
let protocol = 'http'
|
||||||
if(process.env.NODE_ENV !== 'development'){
|
if(process.env.NODE_ENV !== 'development'){
|
||||||
let host = window.location.host
|
let host = window.location.host
|
||||||
if(window.location.port.length > 0){
|
if(window.location.port.length > 0){
|
||||||
host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
|
host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
|
||||||
}
|
}
|
||||||
window.open(`http://${host}:10010/download?jmal-token=${this.$store.state.user.token}&fileIds=${fileIds}`,'_self')
|
window.open(`${document.location.protocol}//${host}:10010/download?jmal-token=${this.$store.state.user.token}&fileIds=${fileIds}`,'_self')
|
||||||
}else{
|
}else{
|
||||||
window.open(process.env.VUE_APP_BASE_FILE_API + '/download?jmal-token=' + this.$store.state.user.token + '&fileIds=' + fileIds, '_self')
|
window.open(process.env.VUE_APP_BASE_FILE_API + '/download?jmal-token=' + this.$store.state.user.token + '&fileIds=' + fileIds, '_self')
|
||||||
}
|
}
|
||||||
@ -2649,7 +2649,6 @@
|
|||||||
},
|
},
|
||||||
// 移除选中项
|
// 移除选中项
|
||||||
removeSelectItme(){
|
removeSelectItme(){
|
||||||
console.log(this.$refs.fileListTable.tableSelectData.length,this.$refs.fileListTable.tableSelectData)
|
|
||||||
let removeFileIndexList = []
|
let removeFileIndexList = []
|
||||||
if(this.$refs.fileListTable.tableSelectData.length > 0){
|
if(this.$refs.fileListTable.tableSelectData.length > 0){
|
||||||
this.$refs.fileListTable.tableSelectData.forEach(item => {
|
this.$refs.fileListTable.tableSelectData.forEach(item => {
|
||||||
|
|||||||
@ -225,7 +225,6 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
Bus.$on('uploadFileListBack',() => {
|
Bus.$on('uploadFileListBack',() => {
|
||||||
console.log(this.process)
|
|
||||||
if(this.process !== -10 && this.process !== 100 && this.fileListLength !== 0){
|
if(this.process !== -10 && this.process !== 100 && this.fileListLength !== 0){
|
||||||
this.shrink()
|
this.shrink()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -76,7 +76,6 @@ export default {
|
|||||||
this.$refs.audioPlayer.switch(this.audio.length-1)
|
this.$refs.audioPlayer.switch(this.audio.length-1)
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
console.log(this.$refs.audioPlayer)
|
|
||||||
this.$refs.audioPlayer.switch(musicIndex)
|
this.$refs.audioPlayer.switch(musicIndex)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -118,7 +118,6 @@
|
|||||||
this.$viewer.show()
|
this.$viewer.show()
|
||||||
},
|
},
|
||||||
updateStatus() {
|
updateStatus() {
|
||||||
console.log(78)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -255,7 +255,6 @@
|
|||||||
},
|
},
|
||||||
watch: { //监听file的变化,进行相应的操作即可
|
watch: { //监听file的变化,进行相应的操作即可
|
||||||
file(file) {
|
file(file) {
|
||||||
console.log('watich:file',file)
|
|
||||||
if(!file.path){
|
if(!file.path){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -569,7 +568,6 @@
|
|||||||
loadConterSize(){
|
loadConterSize(){
|
||||||
let conter = document.querySelector('.editor-resize .editor-resize-conter');
|
let conter = document.querySelector('.editor-resize .editor-resize-conter');
|
||||||
if(conter){
|
if(conter){
|
||||||
console.log()
|
|
||||||
conter.style.marginTop = ((this.editorHieght+26)/2 - conter.clientHeight/2) + 'px'
|
conter.style.marginTop = ((this.editorHieght+26)/2 - conter.clientHeight/2) + 'px'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -147,7 +147,6 @@ export default {
|
|||||||
},
|
},
|
||||||
timeoutFun(){
|
timeoutFun(){
|
||||||
if(this.playing){
|
if(this.playing){
|
||||||
console.log("消失",this.$pc)
|
|
||||||
if(!this.$pc){
|
if(!this.$pc){
|
||||||
const closeBar = document.querySelector('.block .close-bar')
|
const closeBar = document.querySelector('.block .close-bar')
|
||||||
closeBar.style.display = "none"
|
closeBar.style.display = "none"
|
||||||
|
|||||||
@ -183,7 +183,6 @@ export default {
|
|||||||
this.tableHeight = window.innerHeight - this.$refs.refTable.$el.getBoundingClientRect().top - this.$refs.commonPage.$el.offsetHeight - 10
|
this.tableHeight = window.innerHeight - this.$refs.refTable.$el.getBoundingClientRect().top - this.$refs.commonPage.$el.offsetHeight - 10
|
||||||
} else {
|
} else {
|
||||||
this.tableHeight = window.innerHeight - this.$refs.refTable.$el.getBoundingClientRect().top - 10
|
this.tableHeight = window.innerHeight - this.$refs.refTable.$el.getBoundingClientRect().top - 10
|
||||||
console.log(this.$refs.refTable)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 监听窗口大小变化
|
// 监听窗口大小变化
|
||||||
@ -197,9 +196,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// console.log(this.tableHeight);
|
|
||||||
// console.log(window.innerHeight);
|
|
||||||
// console.log(this.$refs.refTable.$el.getBoundingClientRect().top);
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onClick(row, index) {
|
onClick(row, index) {
|
||||||
@ -225,7 +221,6 @@ export default {
|
|||||||
if (this.options.mutiSelect) {
|
if (this.options.mutiSelect) {
|
||||||
this.$refs.refTable.toggleRowSelection(row)
|
this.$refs.refTable.toggleRowSelection(row)
|
||||||
}
|
}
|
||||||
// console.log(row,event,column);
|
|
||||||
},
|
},
|
||||||
btn_click() {
|
btn_click() {
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,6 @@ Vue.directive('drawRectangle',{
|
|||||||
return document.getElementById(id)
|
return document.getElementById(id)
|
||||||
}
|
}
|
||||||
let draw = el
|
let draw = el
|
||||||
console.log('draw',draw)
|
|
||||||
let wId = "rectangle1"
|
let wId = "rectangle1"
|
||||||
let startX = 0, startY = 0
|
let startX = 0, startY = 0
|
||||||
let flag = false
|
let flag = false
|
||||||
@ -56,7 +55,6 @@ Vue.directive('drawRectangle',{
|
|||||||
document.onmouseup = function(e){
|
document.onmouseup = function(e){
|
||||||
flag = false
|
flag = false
|
||||||
if($$(wId)){
|
if($$(wId)){
|
||||||
console.log('left',retcLeft, 'top',retcTop, 'width',retcWidth, 'hieght',retcHeight)
|
|
||||||
draw.removeChild($$(wId))
|
draw.removeChild($$(wId))
|
||||||
if(retcWidth > 1 && retcHeight > 1){
|
if(retcWidth > 1 && retcHeight > 1){
|
||||||
}
|
}
|
||||||
@ -91,7 +89,6 @@ Vue.directive('aplayerDrag', {
|
|||||||
styL = +sty.left.replace(/\px/g, '')+binding.value.x;
|
styL = +sty.left.replace(/\px/g, '')+binding.value.x;
|
||||||
styT = +sty.top.replace(/\px/g, '')+binding.value.y;
|
styT = +sty.top.replace(/\px/g, '')+binding.value.y;
|
||||||
};
|
};
|
||||||
// console.log('styL',styL,'styT',styT,'disX',disX,'disY',disY)
|
|
||||||
// 鼠标拖拽事件
|
// 鼠标拖拽事件
|
||||||
document.onmousemove = function (e) {
|
document.onmousemove = function (e) {
|
||||||
// 通过事件委托,计算移动的距离 (开始拖拽至结束拖拽的距离)
|
// 通过事件委托,计算移动的距离 (开始拖拽至结束拖拽的距离)
|
||||||
|
|||||||
@ -24,7 +24,6 @@ service.interceptors.request.use(
|
|||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
// do something with request error
|
// do something with request error
|
||||||
console.log('123',error) // for debug
|
|
||||||
return Promise.reject(error)
|
return Promise.reject(error)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@ -21,7 +21,6 @@
|
|||||||
tempDir: this.tempDir
|
tempDir: this.tempDir
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.source = res.data
|
this.source = res.data
|
||||||
console.log(this.source)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
@ -451,42 +451,26 @@
|
|||||||
const that = this
|
const that = this
|
||||||
switch (operation) {
|
switch (operation) {
|
||||||
case 'favorite':
|
case 'favorite':
|
||||||
console.log('operation', '收藏')
|
|
||||||
this.favoriteOperating(true)
|
this.favoriteOperating(true)
|
||||||
break
|
break
|
||||||
case 'open':
|
case 'open':
|
||||||
console.log('open', '打开')
|
|
||||||
this.fileClick(this.rowContextData)
|
this.fileClick(this.rowContextData)
|
||||||
break
|
break
|
||||||
case 'unselect':
|
case 'unselect':
|
||||||
console.log('unselect', '取消选择')
|
|
||||||
const index = this.rowContextData.index
|
const index = this.rowContextData.index
|
||||||
// this.selectIndexList.splice(this.selectIndexList.indexOf(index),1)
|
|
||||||
|
|
||||||
console.log(this.selectIndexList)
|
|
||||||
this.$refs.checkboxes[index].toggle();
|
this.$refs.checkboxes[index].toggle();
|
||||||
break
|
break
|
||||||
case 'unFavorite':
|
case 'unFavorite':
|
||||||
console.log('unFavorite', '取消收藏')
|
|
||||||
this.favoriteOperating(false)
|
this.favoriteOperating(false)
|
||||||
break
|
break
|
||||||
case 'select':
|
case 'select':
|
||||||
// Notify({
|
|
||||||
// message: this.rowContextData.name,
|
|
||||||
// color: '#ad0000',
|
|
||||||
// background: '#ffe1e1',
|
|
||||||
// duration: 1000
|
|
||||||
// });
|
|
||||||
console.log('select', this.rowContextData)
|
|
||||||
this.selectStatus = true
|
this.selectStatus = true
|
||||||
this.selectIndexList.push(this.rowContextData.index)
|
this.selectIndexList.push(this.rowContextData.index)
|
||||||
console.log(this.selectIndexList)
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
that.$refs.checkboxes[that.rowContextData.index].toggle();
|
that.$refs.checkboxes[that.rowContextData.index].toggle();
|
||||||
},0)
|
},0)
|
||||||
break
|
break
|
||||||
case 'rename':
|
case 'rename':
|
||||||
console.log('重命名')
|
|
||||||
this.renameFileName = this.rowContextData.name
|
this.renameFileName = this.rowContextData.name
|
||||||
this.showRename = true
|
this.showRename = true
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
@ -494,15 +478,12 @@
|
|||||||
},0)
|
},0)
|
||||||
break
|
break
|
||||||
case 'copy':
|
case 'copy':
|
||||||
console.log('移动或复制')
|
|
||||||
Toast('暂不支持移动');
|
Toast('暂不支持移动');
|
||||||
break
|
break
|
||||||
case 'download':
|
case 'download':
|
||||||
console.log('下载')
|
|
||||||
this.downloadFile()
|
this.downloadFile()
|
||||||
break
|
break
|
||||||
case 'remove':
|
case 'remove':
|
||||||
console.log('operation', '删除')
|
|
||||||
this.deleteFile()
|
this.deleteFile()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@ -521,7 +502,6 @@
|
|||||||
newFileName += ext
|
newFileName += ext
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('newFileName', newFileName)
|
|
||||||
this.renameLoading = true
|
this.renameLoading = true
|
||||||
const findIndex = this.fileList.findIndex(item => {
|
const findIndex = this.fileList.findIndex(item => {
|
||||||
if(newFileName === item.name){
|
if(newFileName === item.name){
|
||||||
@ -581,7 +561,7 @@
|
|||||||
if(window.location.port.length > 0){
|
if(window.location.port.length > 0){
|
||||||
host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
|
host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
|
||||||
}
|
}
|
||||||
window.open(`http://${host}:10010/download?jmal-token=${this.$store.state.user.token}&fileIds=${fileIds}`,'_self')
|
window.open(`${document.location.protocol}//${host}:10010/download?jmal-token=${this.$store.state.user.token}&fileIds=${fileIds}`,'_self')
|
||||||
}else{
|
}else{
|
||||||
window.open(process.env.VUE_APP_BASE_FILE_API + '/download?jmal-token=' + this.$store.state.user.token + '&fileIds=' + fileIds, '_self')
|
window.open(process.env.VUE_APP_BASE_FILE_API + '/download?jmal-token=' + this.$store.state.user.token + '&fileIds=' + fileIds, '_self')
|
||||||
}
|
}
|
||||||
@ -617,7 +597,6 @@
|
|||||||
fileList = this.selectRowData
|
fileList = this.selectRowData
|
||||||
fileIds.push(this.rowContextData.id)
|
fileIds.push(this.rowContextData.id)
|
||||||
}
|
}
|
||||||
console.log(this.rowContextData)
|
|
||||||
const str = this.getShowSumFileAndFolder(fileList)
|
const str = this.getShowSumFileAndFolder(fileList)
|
||||||
|
|
||||||
Dialog.confirm({
|
Dialog.confirm({
|
||||||
@ -656,7 +635,6 @@
|
|||||||
this.Loop = setTimeout(function() {
|
this.Loop = setTimeout(function() {
|
||||||
item.scrollY = e.targetTouches[0].pageY-e.targetTouches[0].clientY
|
item.scrollY = e.targetTouches[0].pageY-e.targetTouches[0].clientY
|
||||||
const touchClientX = e.targetTouches[0].clientX;
|
const touchClientX = e.targetTouches[0].clientX;
|
||||||
console.log(e.targetTouches[0])
|
|
||||||
that.findListItem(item,e.targetTouches[0].target,touchClientX)
|
that.findListItem(item,e.targetTouches[0].target,touchClientX)
|
||||||
that.overlayShow = true
|
that.overlayShow = true
|
||||||
document.documentElement.style.overflow='hidden';
|
document.documentElement.style.overflow='hidden';
|
||||||
@ -718,7 +696,6 @@
|
|||||||
},
|
},
|
||||||
//菜单键
|
//菜单键
|
||||||
leftMenu(){
|
leftMenu(){
|
||||||
console.log('菜单')
|
|
||||||
this.leftMenuShow = true
|
this.leftMenuShow = true
|
||||||
},
|
},
|
||||||
async logout() {
|
async logout() {
|
||||||
@ -726,7 +703,6 @@
|
|||||||
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
||||||
},
|
},
|
||||||
startSearch(){
|
startSearch(){
|
||||||
console.log('startSearch')
|
|
||||||
// this.searchStatus = true
|
// this.searchStatus = true
|
||||||
this.vanNavBarClass = {
|
this.vanNavBarClass = {
|
||||||
visibility: 'hidden'
|
visibility: 'hidden'
|
||||||
@ -756,7 +732,6 @@
|
|||||||
this.getFileList()
|
this.getFileList()
|
||||||
},
|
},
|
||||||
onSearch(){
|
onSearch(){
|
||||||
console.log('onSearch')
|
|
||||||
if(this.searchValue.length < 1){
|
if(this.searchValue.length < 1){
|
||||||
this.getFileList()
|
this.getFileList()
|
||||||
}else{
|
}else{
|
||||||
@ -797,10 +772,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleLink(item, index, isPushLink) {
|
handleLink(item, index, isPushLink) {
|
||||||
|
|
||||||
console.log("handleLink", item)
|
|
||||||
console.log("handleLink - index", index)
|
|
||||||
|
|
||||||
if (!this.$route.query.path){
|
if (!this.$route.query.path){
|
||||||
this.$router.push(`/_m`)
|
this.$router.push(`/_m`)
|
||||||
}
|
}
|
||||||
@ -913,7 +884,6 @@
|
|||||||
this.fileList.sort(this.compare(this.sortableProp))
|
this.fileList.sort(this.compare(this.sortableProp))
|
||||||
},
|
},
|
||||||
clickFileType(queryFileType,queryCondition){
|
clickFileType(queryFileType,queryCondition){
|
||||||
console.log(queryCondition)
|
|
||||||
this.queryCondition = queryCondition
|
this.queryCondition = queryCondition
|
||||||
this.queryFileType = queryFileType
|
this.queryFileType = queryFileType
|
||||||
this.getFileList()
|
this.getFileList()
|
||||||
@ -1121,7 +1091,6 @@
|
|||||||
},
|
},
|
||||||
// 新建文件夹
|
// 新建文件夹
|
||||||
newFolderNameClick() {
|
newFolderNameClick() {
|
||||||
console.log('user', this.$store.state.user);
|
|
||||||
this.newFolderLoading = true
|
this.newFolderLoading = true
|
||||||
if(this.newFolderName){
|
if(this.newFolderName){
|
||||||
api.uploadFolder({
|
api.uploadFolder({
|
||||||
@ -1159,7 +1128,6 @@
|
|||||||
},
|
},
|
||||||
swipeUp() {
|
swipeUp() {
|
||||||
this.test = 10
|
this.test = 10
|
||||||
console.log(67)
|
|
||||||
},
|
},
|
||||||
tabBottom() {
|
tabBottom() {
|
||||||
return { padding: '0 0 20px 0' }
|
return { padding: '0 0 20px 0' }
|
||||||
|
|||||||
@ -181,7 +181,6 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
if(this.initialize){
|
if(this.initialize){
|
||||||
// 初始化
|
// 初始化
|
||||||
console.log('初始化')
|
|
||||||
let data = new FormData()
|
let data = new FormData()
|
||||||
data.append('username',this.loginForm.username)
|
data.append('username',this.loginForm.username)
|
||||||
data.append('password',this.loginForm.password)
|
data.append('password',this.loginForm.password)
|
||||||
|
|||||||
@ -71,7 +71,6 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
$imgAdd(pos, $file) {
|
$imgAdd(pos, $file) {
|
||||||
console.log('$file.length',$file.size)
|
|
||||||
const maxSize = 1024 * 1024 * 5
|
const maxSize = 1024 * 1024 * 5
|
||||||
if($file.size > maxSize){
|
if($file.size > maxSize){
|
||||||
this.$message({
|
this.$message({
|
||||||
@ -99,7 +98,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
$imgDel(pos, $file) {
|
$imgDel(pos, $file) {
|
||||||
console.log("del",pos,$file)
|
|
||||||
},
|
},
|
||||||
// 所有操作都会被解析重新渲染
|
// 所有操作都会被解析重新渲染
|
||||||
change(value, render){
|
change(value, render){
|
||||||
@ -176,7 +174,6 @@
|
|||||||
},
|
},
|
||||||
confirmSelectDir(){
|
confirmSelectDir(){
|
||||||
const node = this.$refs.dirTree.getSelectTreeNode()
|
const node = this.$refs.dirTree.getSelectTreeNode()
|
||||||
console.log(this.$refs.dirTree.getSelectTreeNode())
|
|
||||||
this.storageLocation = node.path + node.name
|
this.storageLocation = node.path + node.name
|
||||||
this.$refs.dirTree.hide()
|
this.$refs.dirTree.hide()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -78,9 +78,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onScroll() {
|
onScroll() {
|
||||||
console.log("befterScrollTop")
|
|
||||||
// let befterScrollTop = document.documentElement.scrollTop;
|
// let befterScrollTop = document.documentElement.scrollTop;
|
||||||
// console.log("befterScrollTop",befterScrollTop)
|
|
||||||
},
|
},
|
||||||
getMarkDown() {
|
getMarkDown() {
|
||||||
markdownApi.getMarkdown({
|
markdownApi.getMarkdown({
|
||||||
@ -128,7 +126,6 @@
|
|||||||
|
|
||||||
let beforeScrollTop = document.documentElement.scrollTop;
|
let beforeScrollTop = document.documentElement.scrollTop;
|
||||||
let fn = fn || function (direction) {
|
let fn = fn || function (direction) {
|
||||||
console.log(direction)
|
|
||||||
// 判断是上滑显示,下滑隐藏
|
// 判断是上滑显示,下滑隐藏
|
||||||
if(direction === 'down'){
|
if(direction === 'down'){
|
||||||
$('#top').removeClass('animateIn')
|
$('#top').removeClass('animateIn')
|
||||||
@ -176,7 +173,6 @@
|
|||||||
|
|
||||||
let $root = $('html, body');
|
let $root = $('html, body');
|
||||||
$('.j-titleList li').on("click", function () {
|
$('.j-titleList li').on("click", function () {
|
||||||
console.log(typeof($(this).attr("first"))!=="undefined")
|
|
||||||
let top = 70
|
let top = 70
|
||||||
if (typeof($(this).attr("first"))!=="undefined") {
|
if (typeof($(this).attr("first"))!=="undefined") {
|
||||||
// 点击第一个目录
|
// 点击第一个目录
|
||||||
|
|||||||
@ -240,7 +240,6 @@
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
onScroll() {
|
onScroll() {
|
||||||
// console.log(document.documentElement.scrollTop)
|
|
||||||
},
|
},
|
||||||
getMarkDown() {
|
getMarkDown() {
|
||||||
markdownApi.getMarkdown().then((res) => {
|
markdownApi.getMarkdown().then((res) => {
|
||||||
|
|||||||
@ -514,7 +514,6 @@
|
|||||||
this.accessShareOpenDir(item.fileId)
|
this.accessShareOpenDir(item.fileId)
|
||||||
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))
|
||||||
}
|
}
|
||||||
console.log(this.pathList)
|
|
||||||
},
|
},
|
||||||
// 切换布局
|
// 切换布局
|
||||||
changeVmode(){
|
changeVmode(){
|
||||||
@ -597,7 +596,6 @@
|
|||||||
},
|
},
|
||||||
currentChange(pageIndex) {
|
currentChange(pageIndex) {
|
||||||
this.pagination.pageIndex = pageIndex
|
this.pagination.pageIndex = pageIndex
|
||||||
console.log(this.pagination.fileId)
|
|
||||||
if(this.pagination.fileId){
|
if(this.pagination.fileId){
|
||||||
this.accessShareOpenDir(this.pagination.fileId)
|
this.accessShareOpenDir(this.pagination.fileId)
|
||||||
}else{
|
}else{
|
||||||
@ -875,7 +873,7 @@
|
|||||||
if(window.location.port.length > 0){
|
if(window.location.port.length > 0){
|
||||||
host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
|
host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
|
||||||
}
|
}
|
||||||
window.open(`http://${host}:10010/public/s/download?&share=${this.shareId}&fileIds=${fileIds}`,'_self')
|
window.open(`${document.location.protocol}//${host}:10010/public/s/download?&share=${this.shareId}&fileIds=${fileIds}`,'_self')
|
||||||
}else{
|
}else{
|
||||||
window.open(process.env.VUE_APP_BASE_FILE_API + `/public/s/download?&share=${this.shareId}&fileIds=${fileIds}`, '_self')
|
window.open(process.env.VUE_APP_BASE_FILE_API + `/public/s/download?&share=${this.shareId}&fileIds=${fileIds}`, '_self')
|
||||||
}
|
}
|
||||||
|
|||||||
@ -463,7 +463,6 @@
|
|||||||
this.accessShareOpenDir(item.fileId)
|
this.accessShareOpenDir(item.fileId)
|
||||||
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))
|
||||||
}
|
}
|
||||||
console.log(this.pathList)
|
|
||||||
},
|
},
|
||||||
// 切换布局
|
// 切换布局
|
||||||
changeVmode(){
|
changeVmode(){
|
||||||
@ -548,7 +547,6 @@
|
|||||||
},
|
},
|
||||||
currentChange(pageIndex) {
|
currentChange(pageIndex) {
|
||||||
this.pagination.pageIndex = pageIndex
|
this.pagination.pageIndex = pageIndex
|
||||||
console.log(this.pagination.fileId)
|
|
||||||
if(this.pagination.fileId){
|
if(this.pagination.fileId){
|
||||||
this.accessShareOpenDir(this.pagination.fileId)
|
this.accessShareOpenDir(this.pagination.fileId)
|
||||||
}else{
|
}else{
|
||||||
@ -826,7 +824,7 @@
|
|||||||
if(window.location.port.length > 0){
|
if(window.location.port.length > 0){
|
||||||
host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
|
host = window.location.host.substring(0,window.location.host.length - window.location.port.length - 1)
|
||||||
}
|
}
|
||||||
window.open(`http://${host}:10010/public/s/download?&share=${this.shareId}&fileIds=${fileIds}`,'_self')
|
window.open(`${document.location.protocol}//${host}:10010/public/s/download?&share=${this.shareId}&fileIds=${fileIds}`,'_self')
|
||||||
}else{
|
}else{
|
||||||
window.open(process.env.VUE_APP_BASE_FILE_API + `/public/s/download?&share=${this.shareId}&fileIds=${fileIds}`, '_self')
|
window.open(process.env.VUE_APP_BASE_FILE_API + `/public/s/download?&share=${this.shareId}&fileIds=${fileIds}`, '_self')
|
||||||
}
|
}
|
||||||
|
|||||||
@ -139,7 +139,6 @@
|
|||||||
methods: {
|
methods: {
|
||||||
getUserList(){
|
getUserList(){
|
||||||
userList().then(res => {
|
userList().then(res => {
|
||||||
console.log(res.data)
|
|
||||||
this.userList = res.data
|
this.userList = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -326,7 +326,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
sortChange(column) {
|
sortChange(column) {
|
||||||
console.log('sortChange',column)
|
|
||||||
this.sortable.prop = column.prop
|
this.sortable.prop = column.prop
|
||||||
this.sortable.order = column.order
|
this.sortable.order = column.order
|
||||||
this.pagination.pageIndex = 1
|
this.pagination.pageIndex = 1
|
||||||
@ -460,7 +459,6 @@
|
|||||||
shareIds.push(row.id)
|
shareIds.push(row.id)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(shareIds)
|
|
||||||
api.cancelShareLink({
|
api.cancelShareLink({
|
||||||
userId: this.$store.state.user.userId,
|
userId: this.$store.state.user.userId,
|
||||||
shareId: shareIds
|
shareId: shareIds
|
||||||
|
|||||||
@ -34,7 +34,6 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
console.log('window.uploader',window.uploader)
|
|
||||||
this.fileList = window.uploader.fileList
|
this.fileList = window.uploader.fileList
|
||||||
},
|
},
|
||||||
destroyed(){
|
destroyed(){
|
||||||
|
|||||||
@ -3,7 +3,7 @@ let host = window.location.host;
|
|||||||
if (window.location.port.length > 0) {
|
if (window.location.port.length > 0) {
|
||||||
host = window.location.host.substring(0, window.location.host.length - window.location.port.length - 1)
|
host = window.location.host.substring(0, window.location.host.length - window.location.port.length - 1)
|
||||||
}
|
}
|
||||||
const url = `http://${host}:8088`;
|
const url = `${document.location.protocol}//${host}:8088`;
|
||||||
let stompClient = '';
|
let stompClient = '';
|
||||||
let isConnected = false;
|
let isConnected = false;
|
||||||
let timer = '';
|
let timer = '';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user