Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
web
soss
Commits
943c094b
Commit
943c094b
authored
Aug 04, 2022
by
赵永成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xiu gai tupian
parent
ba4a479d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/components/ImageUpload/index.vue
+1
-1
src/views/system/base/components/leftImg.vue
+3
-1
No files found.
src/components/ImageUpload/index.vue
View file @
943c094b
...
@@ -80,7 +80,7 @@ export default {
...
@@ -80,7 +80,7 @@ export default {
handler
(
val
)
{
handler
(
val
)
{
if
(
val
)
{
if
(
val
)
{
// 首先将值转为数组
// 首先将值转为数组
const
list
=
Array
.
isArray
(
val
)
?
val
:
this
.
value
.
split
(
","
);
const
list
=
Array
.
isArray
(
JSON
.
parse
(
val
))
?
JSON
.
parse
(
val
)
:
this
.
value
.
split
(
","
);
// 然后将数组转为对象数组
// 然后将数组转为对象数组
this
.
fileList
=
list
.
map
((
item
)
=>
{
this
.
fileList
=
list
.
map
((
item
)
=>
{
if
(
typeof
item
===
"string"
)
{
if
(
typeof
item
===
"string"
)
{
...
...
src/views/system/base/components/leftImg.vue
View file @
943c094b
...
@@ -24,8 +24,10 @@ export default {
...
@@ -24,8 +24,10 @@ export default {
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
console
.
log
(
" this.value1"
,
this
.
value
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
updateConfig
({
...
this
.
initValue
,
configValue
:
this
.
value
}).
then
(
res
=>
{
console
.
log
(
" this.value2"
,
JSON
.
stringify
(
this
.
value
));
updateConfig
({
...
this
.
initValue
,
configValue
:
JSON
.
stringify
(
this
.
value
)
}).
then
(
res
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
$modal
.
msgSuccess
(
"修改成功"
);
})
})
})
})
...
...
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