Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety
Commits
eaa1ccd3
Commit
eaa1ccd3
authored
Jan 18, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并master
parent
1e8ffe27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
createPop.js
gassafety-web/src/utils/createPop.js
+10
-0
gaodeMapView.js
gassafety-web/src/utils/gaodeMapView.js
+2
-0
No files found.
gassafety-web/src/utils/createPop.js
View file @
eaa1ccd3
/*
* @Author: your name
* @Date: 2021-07-17 16:35:29
* @LastEditTime: 2022-01-17 10:32:50
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafety-web/src/utils/createPop.js
*/
import
Vue
from
'vue'
export
default
function
create
(
comp
,
props
)
{
console
.
log
(
"comp"
,
comp
)
const
app
=
new
Vue
({
render
(
h
)
{
return
h
(
comp
,
{
props
})
...
...
@@ -9,6 +18,7 @@ export default function create (comp, props) {
document
.
body
.
appendChild
(
app
.
$el
)
// 销毁
const
com
=
app
.
$children
[
0
]
com
.
remove
=
function
()
{
document
.
body
.
removeChild
(
app
.
$el
)
app
.
$destroy
()
...
...
gassafety-web/src/utils/gaodeMapView.js
View file @
eaa1ccd3
...
...
@@ -572,6 +572,8 @@ class gaodeMap {
map
:
map
});
const
html
=
dom
.
$el
;
console
.
log
(
"html"
,
html
)
dom
.
remove
();
return
html
;
}
...
...
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