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