/** * worker文件-静态资源文件路径 */ const baseUrl = import.meta.env.VITE_HISTORY_BASE_URL; export const scriptUrl = `${ baseUrl.length === 1 && baseUrl.indexOf('/') === 0 ? '' : baseUrl.indexOf('/') === -1 ? '/' + baseUrl : baseUrl }/wiregasm/worker.js`;