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
d12348f6
Commit
d12348f6
authored
Jul 24, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
d9a07ba7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
17 deletions
+9
-17
main.js
+9
-17
No files found.
main.js
View file @
d12348f6
import
App
from
'./App.vue'
;
import
App
from
'./App.vue'
;
// #ifdef VUE3
import
{
createApp
}
from
'vue'
import
{
createApp
}
from
'vue'
const
vueApp
=
createApp
(
App
)
// 重命名为 vueApp
vueApp
.
mount
(
'#app'
)
// #endif
// #ifndef VUE3
// 创建 Vue 3 应用实例
// Vue 2 兼容代码 - 使用 Vue 2 的标准导入方式
const
app
=
createApp
(
App
)
import
Vue
from
'vue'
App
.
mpType
=
'app'
// 挂载应用到 DOM
const
vue2App
=
new
Vue
({
// 重命名为 vue2App
app
.
mount
(
'#app'
)
...
App
})
vue2App
.
$mount
()
// #endif
//#ifdef H5
// H5 环境特定代码
window
.
sessionStorage
.
setItem
(
'firstEntryUrl'
,
window
.
location
.
href
.
split
(
'#'
)[
0
])
if
(
typeof
window
!==
'undefined'
)
{
// #endif
window
.
sessionStorage
.
setItem
(
'firstEntryUrl'
,
window
.
location
.
href
.
split
(
'#'
)[
0
])
}
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