mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
perf: 优化本地资源加载方式
This commit is contained in:
parent
e29bd01f68
commit
489e5b551c
10
public/assets/empty.html
Normal file
10
public/assets/empty.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Empty</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -111,6 +111,7 @@ export default {
|
||||
microApp.start({
|
||||
'iframe': true,
|
||||
'router-mode': 'state',
|
||||
'iframeSrc': window.location.origin + '/assets/empty.html',
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ const convertLocalResourcePath = (() => {
|
||||
|
||||
// 设置应用前缀URL
|
||||
if ($A.isEEUIApp || $A.isElectron) {
|
||||
appPreUrl = window.origin + "/"
|
||||
appPreUrl = window.location.origin + "/"
|
||||
}
|
||||
|
||||
// 如果没有特殊前缀,提前返回
|
||||
|
||||
10
resources/assets/statics/public/assets/empty.html
Normal file
10
resources/assets/statics/public/assets/empty.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Empty</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user