Commit a492541fa74bd33ac3c192a329b90adb80548e57

Authored by xp.Huang
2 parents fb500fb3 b21477ad

Merge branch 'feat/oss-support' into 'main_dev'

pref: 优化oss地址拼接

See merge request yunteng/thingskit-scada!178
Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -105,7 +105,7 @@ catch (e) {
105 105 */
106 106 function getLoadOssFileAddress(ossFileName, localFileAddress) {
107 107 const { enableOss, ossAddress } = window.PROJECT_ENV
108   - return enableOss && ossAddress ? `${ossAddress}/${ossFileName}` : localFileAddress
  108 + return enableOss && ossAddress ? `${ossAddress}${ossAddress.endsWith('/') ? '' : '/'}${ossFileName}` : localFileAddress
109 109 }
110 110
111 111 let mxScriptsLoaded = false; let mxWinLoaded = false
... ...