linwenling
2023-10-22 dbca8bf9dde4fe0c7eb89a0c30b095eb823142a5
ruoyi-ui/src/views/secret/secretInfo.vue
@@ -387,9 +387,16 @@
      },
      handleFileCardPreview(file){
        this.dialogFileUrl = file.url;
        // alert(file.url)
        // this.dialogFileUrl = 'https://www.bendudu.com:8080/profile/upload/2023/10/18/20231018214647A011.doc'
        // this.dialogFileUrl = 'https://47.93.189.255:8080/profile/upload/2023/03/19/test7_20230319222030A007.jpg'
        if(this.dialogFileUrl.includes("47.93.189.255")==true)
          this.dialogFileUrl = this.dialogFileUrl.replace("47.93.189.255","www.bendudu.com")
        //alert(this.dialogFileUrl)
        const Base64 = require('js-base64').Base64
        this.desurl = process.env.VUE_APP_BASE_OTHER_API+'onlinePreview?url='+encodeURIComponent(Base64.encode(this.dialogFileUrl));
        myWindow=window.open(this.desurl,'','width=1200,height=800,top=150,left=300');
        this.desurl = process.env.VUE_APP_BASE_OTHER_API+"preview/"+'onlinePreview?url='+encodeURIComponent(Base64.encode(this.dialogFileUrl));
        let myWindow=window.open(this.desurl,'','width=1200,height=800,top=150,left=300');
      },
      handlePictureCardPreview(file) {
        this.dialogImageUrl = file.url;