diff --git a/src/assets/js/mavon-line.js b/src/assets/js/mavon-line.js
index 15787e2..3f04af2 100644
--- a/src/assets/js/mavon-line.js
+++ b/src/assets/js/mavon-line.js
@@ -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 = $('')
$('body').append(element)
diff --git a/src/components/EmptyFile/index.vue b/src/components/EmptyFile/index.vue
index 1e10d2b..bd5a691 100644
--- a/src/components/EmptyFile/index.vue
+++ b/src/components/EmptyFile/index.vue
@@ -30,7 +30,6 @@
}
},
created(){
- console.log('emptyFile - created')
},
data() {
return {
diff --git a/src/components/FileTree/index.vue b/src/components/FileTree/index.vue
index 7609c7d..2b08d76 100644
--- a/src/components/FileTree/index.vue
+++ b/src/components/FileTree/index.vue
@@ -142,7 +142,6 @@
}).then((res) => {
data.newFolder = false
data.id = res.data.id
- console.log(data)
}).catch(() => {
window.event.preventDefault()
window.event.stopPropagation()
diff --git a/src/components/MonacoEditorVue/index.js b/src/components/MonacoEditorVue/index.js
index 069dd27..7322a61 100644
--- a/src/components/MonacoEditorVue/index.js
+++ b/src/components/MonacoEditorVue/index.js
@@ -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;
}
diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue
index 23cc242..cb10718 100644
--- a/src/components/ShowFile/ShowFile.vue
+++ b/src/components/ShowFile/ShowFile.vue
@@ -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 => {
diff --git a/src/components/SimpleUploader/globalUploader.vue b/src/components/SimpleUploader/globalUploader.vue
index 0116ec3..b0f862e 100755
--- a/src/components/SimpleUploader/globalUploader.vue
+++ b/src/components/SimpleUploader/globalUploader.vue
@@ -225,7 +225,6 @@
})
Bus.$on('uploadFileListBack',() => {
- console.log(this.process)
if(this.process !== -10 && this.process !== 100 && this.fileListLength !== 0){
this.shrink()
}
diff --git a/src/components/preview/AudioPreview.vue b/src/components/preview/AudioPreview.vue
index e51a478..961aa40 100644
--- a/src/components/preview/AudioPreview.vue
+++ b/src/components/preview/AudioPreview.vue
@@ -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)
}
})
diff --git a/src/components/preview/ImageViewer.vue b/src/components/preview/ImageViewer.vue
index 53d9d63..3ac0fc6 100644
--- a/src/components/preview/ImageViewer.vue
+++ b/src/components/preview/ImageViewer.vue
@@ -118,7 +118,6 @@
this.$viewer.show()
},
updateStatus() {
- console.log(78)
}
}
}
diff --git a/src/components/preview/SimTextPreview.vue b/src/components/preview/SimTextPreview.vue
index b6d86c0..d7eeb9d 100644
--- a/src/components/preview/SimTextPreview.vue
+++ b/src/components/preview/SimTextPreview.vue
@@ -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'
}
},
diff --git a/src/components/preview/VideoPreview.vue b/src/components/preview/VideoPreview.vue
index 3206604..6c41bbb 100644
--- a/src/components/preview/VideoPreview.vue
+++ b/src/components/preview/VideoPreview.vue
@@ -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"
diff --git a/src/components/table/table.vue b/src/components/table/table.vue
index 9e8b68f..0c9ade2 100644
--- a/src/components/table/table.vue
+++ b/src/components/table/table.vue
@@ -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() {
diff --git a/src/utils/directives.js b/src/utils/directives.js
index 2f602ea..9af22a7 100644
--- a/src/utils/directives.js
+++ b/src/utils/directives.js
@@ -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) {
// 通过事件委托,计算移动的距离 (开始拖拽至结束拖拽的距离)
diff --git a/src/utils/request.js b/src/utils/request.js
index 14f18aa..6088494 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -24,7 +24,6 @@ service.interceptors.request.use(
},
error => {
// do something with request error
- console.log('123',error) // for debug
return Promise.reject(error)
}
)
diff --git a/src/views/demo/index.vue b/src/views/demo/index.vue
index f3d3197..903cfd4 100644
--- a/src/views/demo/index.vue
+++ b/src/views/demo/index.vue
@@ -21,7 +21,6 @@
tempDir: this.tempDir
}).then(res => {
this.source = res.data
- console.log(this.source)
})
},
mounted() {
diff --git a/src/views/home/mobile/index.vue b/src/views/home/mobile/index.vue
index 94ace0b..287c5fd 100644
--- a/src/views/home/mobile/index.vue
+++ b/src/views/home/mobile/index.vue
@@ -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' }
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 7b92a0c..ebfdc67 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -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)
diff --git a/src/views/markdown/index.vue b/src/views/markdown/index.vue
index 5d21d3b..8145ffe 100644
--- a/src/views/markdown/index.vue
+++ b/src/views/markdown/index.vue
@@ -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()
}
diff --git a/src/views/public/article/index.vue b/src/views/public/article/index.vue
index 8fcfb75..a0c716e 100644
--- a/src/views/public/article/index.vue
+++ b/src/views/public/article/index.vue
@@ -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") {
// 点击第一个目录
diff --git a/src/views/public/articles/index.vue b/src/views/public/articles/index.vue
index 490efe2..b8a0375 100644
--- a/src/views/public/articles/index.vue
+++ b/src/views/public/articles/index.vue
@@ -240,7 +240,6 @@
return null;
},
onScroll() {
- // console.log(document.documentElement.scrollTop)
},
getMarkDown() {
markdownApi.getMarkdown().then((res) => {
diff --git a/src/views/public/share/shareList.vue b/src/views/public/share/shareList.vue
index ca85d85..81f8429 100644
--- a/src/views/public/share/shareList.vue
+++ b/src/views/public/share/shareList.vue
@@ -100,15 +100,15 @@
-
@@ -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')
}
diff --git a/src/views/public/share/shareList_m.vue b/src/views/public/share/shareList_m.vue
index c63e61b..fbc1914 100644
--- a/src/views/public/share/shareList_m.vue
+++ b/src/views/public/share/shareList_m.vue
@@ -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')
}
diff --git a/src/views/setting/tabs/cusomerManager.vue b/src/views/setting/tabs/cusomerManager.vue
index 74640cd..18e2736 100644
--- a/src/views/setting/tabs/cusomerManager.vue
+++ b/src/views/setting/tabs/cusomerManager.vue
@@ -139,7 +139,6 @@
methods: {
getUserList(){
userList().then(res => {
- console.log(res.data)
this.userList = res.data
})
},
diff --git a/src/views/share/index.vue b/src/views/share/index.vue
index e6ab45a..cdbf381 100644
--- a/src/views/share/index.vue
+++ b/src/views/share/index.vue
@@ -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
diff --git a/src/views/upload/mobile/index.vue b/src/views/upload/mobile/index.vue
index a12fb68..e47ede9 100644
--- a/src/views/upload/mobile/index.vue
+++ b/src/views/upload/mobile/index.vue
@@ -34,7 +34,6 @@
};
},
mounted(){
- console.log('window.uploader',window.uploader)
this.fileList = window.uploader.fileList
},
destroyed(){
diff --git a/src/websocket/websocket_config.js b/src/websocket/websocket_config.js
index 4864810..8c1a623 100644
--- a/src/websocket/websocket_config.js
+++ b/src/websocket/websocket_config.js
@@ -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 = '';