Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
ab6da24e
Commit
ab6da24e
authored
Jul 24, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
0a5480f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
main.js
+9
-12
No files found.
main.js
View file @
ab6da24e
import
App
from
'./App.vue'
;
import
App
from
'./App.vue'
;
// #ifndef VUE3
import
Vue
from
'vue'
App
.
mpType
=
'app'
const
app
=
new
Vue
({
...
App
})
app
.
$mount
()
// #endif
// #ifdef VUE3
// #ifdef VUE3
import
{
createSSRApp
}
from
'vue'
import
{
createSSRApp
}
from
'vue'
// 创建应用实例
const
app
=
createSSRApp
(
App
)
// 手动挂载应用
app
.
mount
(
'#app'
)
// 使用与 index.html 中一致的挂载点
// 如果你需要支持 SSR 导出,保留这个函数
export
function
createApp
()
{
export
function
createApp
()
{
const
app
=
createSSRApp
(
App
)
return
{
app
}
return
{
app
}
}
}
// #endif
// #endif
//#ifdef H5
//#ifdef H5
window
.
sessionStorage
.
setItem
(
'firstEntryUrl'
,
window
.
location
.
href
.
split
(
'#'
)[
0
])
window
.
sessionStorage
.
setItem
(
'firstEntryUrl'
,
window
.
location
.
href
.
split
(
'#'
)[
0
])
// #endif
// #endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment