Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
2a1db9bb
Commit
2a1db9bb
authored
Nov 07, 2022
by
季圣华
Browse files
解决在mac下面前端代码打包报错的bug
parent
f3445bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/tools/DynamicNotice.vue
View file @
2a1db9bb
<
template
>
<
template
>
<component
<component
:is=
"comp"
:is=
"comp"
:formData=
"formData"
:formData=
"formData"
ref=
"compModel"
ref=
"compModel"
v-if=
"comp"
>
v-if=
"comp"
>
</component>
</component>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'
DynamicNotice
'
,
name
:
'
DynamicNotice
'
,
data
()
{
data
()
{
return
{
return
{
compName
:
this
.
path
compName
:
this
.
path
}
}
},
},
computed
:
{
computed
:
{
comp
:
function
()
{
comp
:
function
()
{
if
(
!
this
.
path
){
if
(
!
this
.
path
){
return
null
;
return
null
}
}
return
()
=>
import
(
`@/views/
${
this
.
path
}
.vue`
)
return
null
}
// return () => import(`@/views/${this.path}.vue`)
},
}
props
:
[
'
path
'
,
'
formData
'
],
},
methods
:
{
props
:
[
'
path
'
,
'
formData
'
],
detail
()
{
methods
:
{
setTimeout
(()
=>
{
detail
()
{
if
(
this
.
path
){
setTimeout
(()
=>
{
this
.
$refs
.
compModel
.
view
(
this
.
formData
);
if
(
this
.
path
){
}
this
.
$refs
.
compModel
.
view
(
this
.
formData
);
},
200
)
}
},
},
200
)
}
},
}
}
}
</
script
>
</
script
>
\ No newline at end of file
Write
Preview
Supports
Markdown
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