Skip to content

Commit

Permalink
fix: change the way of contact baseurl and widget file (goplus#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
luoliwoshang authored Mar 12, 2024
1 parent 1bcf213 commit c085f8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spx-gui/src/widgets/scripts/build-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* @Author: Zhang Zhi Yang
* @Date: 2024-03-08 12:18:48
* @LastEditors: Zhang Zhi Yang
* @LastEditTime: 2024-03-10 21:17:40
* @FilePath: \spx-gui\src\widgets\scripts\build-loader-plugin.ts
* @LastEditTime: 2024-03-12 18:01:08
* @FilePath: \spx-gui\src\widgets\scripts\build-loader.ts
* @Description:
*/
import fs from 'fs'
Expand Down Expand Up @@ -36,7 +36,7 @@ export default async function BuilderLoader(
if (widgetNameMatch && widgetNameMatch[1]) {
const asset: WidgetAssets = {
// Stitching the actual resource address
js: baseurl + manifest[key].file
js: new URL(manifest[key].file, baseurl).href
}
manifetMap[widgetNameMatch[1]] = asset
}
Expand Down

0 comments on commit c085f8f

Please sign in to comment.