Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
text2video-frontend
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
周成波
text2video-frontend
Commits
27f4e3d8
Commit
27f4e3d8
authored
Mar 06, 2024
by
周成波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
72ce5042
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
index.vue
src/views/home/index.vue
+0
-13
No files found.
src/views/home/index.vue
View file @
27f4e3d8
...
...
@@ -646,23 +646,10 @@ const actionUrl = ref(
:
import
.
meta
.
env
.
VITE_APP_BASE_API
+
'/file/upload_pic_and_modify'
)
// 在分镜自定义上传图片时发现个bug
// 第一次上传没问题,但重复进行上传,会更新到最后一行上去。
// 奇怪,没找到原因。暂时先通过迂回的方法来处理。
let
first_has_uploaded
=
false
;
const
handleUploadSuccess
=
(
val
:
Wm
.
UploadResult
)
=>
{
if
(
val
.
code
==
0
)
{
console
.
log
(
val
)
let
id
=
parseInt
(
val
.
message
)
-
1
;
///// 迂回解决上述bug /////
// if (id == 0) { first_has_uploaded = true; }
// if (first_has_uploaded && id == form.adapt_result_json.length - 1) {
// console.log(first_has_uploaded);
// console.log(id);
// console.log(form.adapt_result_json.length);
// id = 0;}
/////////////////////////
form
.
adapt_result_json
[
id
].
本镜配图
=
val
.
data
[
0
].
url
+
"?v="
+
utils
.
genDateTimeStr
();
form
.
adapt_result_json
[
id
].
local_image_path
=
val
.
data
[
0
].
path
;
ElMessage
({
...
...
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