OPEN_WRITE导流插件

This commit is contained in:
tangly1024.com
2024-09-05 11:28:13 +08:00
parent d0a4acd5c3
commit c2dc5ba47c
5 changed files with 72 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ export function getLastPartOfUrl(url) {
* @param type js 或 css
* @returns {Promise<unknown>}
*/
export function loadExternalResource(url, type) {
export function loadExternalResource(url, type = 'js') {
// 检查是否已存在
const elements =
type === 'js'