From dc41dd0727d7bc112e85fb4ffc0733c8473664e2 Mon Sep 17 00:00:00 2001 From: jmal Date: Fri, 11 Aug 2023 10:04:43 +0800 Subject: [PATCH] operationPermissionList Adapt to old versions --- public/resource/font_2024484_qwtkvngfp5d.js | 2 +- src/components/Icon/IconFile.vue | 10 ++++++++++ src/components/ShareDialog/index.vue | 6 +++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/public/resource/font_2024484_qwtkvngfp5d.js b/public/resource/font_2024484_qwtkvngfp5d.js index ee6c9dd..5449abf 100644 --- a/public/resource/font_2024484_qwtkvngfp5d.js +++ b/public/resource/font_2024484_qwtkvngfp5d.js @@ -1 +1 @@ -window._iconfont_svg_string_2024484='',function(c){var l=(l=document.getElementsByTagName("script"))[l.length-1],a=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var h,t,p,i,M,d=function(l,a){a.parentNode.insertBefore(l,a)};if(a&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}h=function(){var l,a=document.createElement("div");a.innerHTML=c._iconfont_svg_string_2024484,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(l=document.body).firstChild?d(a,l.firstChild):l.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(p=h,i=c.document,M=!1,F(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,z())})}function z(){M||(M=!0,p())}function F(){try{i.documentElement.doScroll("left")}catch(l){return void setTimeout(F,50)}z()}}(window); +window._iconfont_svg_string_2024484='',function(c){var l=(l=document.getElementsByTagName("script"))[l.length-1],a=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var h,t,p,i,M,d=function(l,a){a.parentNode.insertBefore(l,a)};if(a&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}h=function(){var l,a=document.createElement("div");a.innerHTML=c._iconfont_svg_string_2024484,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(l=document.body).firstChild?d(a,l.firstChild):l.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(p=h,i=c.document,M=!1,F(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,z())})}function z(){M||(M=!0,p())}function F(){try{i.documentElement.doScroll("left")}catch(l){return void setTimeout(F,50)}z()}}(window); diff --git a/src/components/Icon/IconFile.vue b/src/components/Icon/IconFile.vue index 6af407a..7876819 100644 --- a/src/components/Icon/IconFile.vue +++ b/src/components/Icon/IconFile.vue @@ -10,6 +10,16 @@ +
+
+ + +
+
+ + +
+
diff --git a/src/components/ShareDialog/index.vue b/src/components/ShareDialog/index.vue index c8f4a3a..81331c7 100644 --- a/src/components/ShareDialog/index.vue +++ b/src/components/ShareDialog/index.vue @@ -192,7 +192,7 @@ export default { expiresDateOption: 1, isPrivacy: false, expiresDate: '', - operationPermissionList: [] + operationPermissionList: undefined }, shareLink: "", qrCodeshareLink: "", @@ -243,7 +243,6 @@ export default { }, methods: { permissionActionChange() { - console.log(this.shareOption.operationPermissionList) this.createShare() }, setShareLink(shareLink) { @@ -278,6 +277,7 @@ export default { submitShare() { this.$refs.form.validate((valid) => { if (valid) { + this.shareOption.operationPermissionList = undefined this.createShare() } else { console.log('error submit!!'); @@ -321,7 +321,7 @@ export default { this.shareOption.expiresDateOption = 2 this.shareOptionConfig.linkLabel = "分享链接" this.extractionCode = extractionCode - this.shareOption.operationPermissionList = operationPermissionList + this.shareOption.operationPermissionList = operationPermissionList || [] this.$emit('onSuccess', shareId) if (update) { if (!expireDate) {