Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
8a5b10f7
Commit
8a5b10f7
authored
May 31, 2023
by
李鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文件路径
parent
805d8d5f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
19 deletions
+2
-19
src/page/main/support/document/add/index.vue
src/page/main/support/document/add/index.vue
+1
-1
src/page/main/support/document/edit/index.vue
src/page/main/support/document/edit/index.vue
+1
-1
src/page/main/support/document/helper.js
src/page/main/support/document/helper.js
+0
-17
No files found.
src/page/main/support/document/add/index.vue
View file @
8a5b10f7
...
...
@@ -36,7 +36,7 @@ import { reactive, toRefs, computed, ref, onBeforeMount, nextTick } from "vue";
import
{
useRoute
,
useRouter
}
from
"
vue-router
"
;
import
axios
from
"
@/request/http.js
"
;
import
{
ElMessage
}
from
"
element-plus
"
;
import
{
$imgAdd
}
from
"
../helper
"
;
import
{
$imgAdd
}
from
"
../
../
helper
"
;
import
bgBreadcrumb
from
"
@/components/bg-breadcrumb.vue
"
;
const
route
=
useRoute
();
...
...
src/page/main/support/document/edit/index.vue
View file @
8a5b10f7
...
...
@@ -36,7 +36,7 @@ import { reactive, toRefs, computed, ref, onBeforeMount, nextTick } from "vue";
import
{
useRoute
,
useRouter
}
from
"
vue-router
"
;
import
axios
from
"
@/request/http.js
"
;
import
{
ElMessage
}
from
"
element-plus
"
;
import
{
$imgAdd
}
from
"
../helper
"
;
import
{
$imgAdd
}
from
"
../
../
helper
"
;
import
bgBreadcrumb
from
"
@/components/bg-breadcrumb.vue
"
;
const
route
=
useRoute
();
...
...
src/page/main/support/document/helper.js
deleted
100644 → 0
View file @
805d8d5f
import
$axios
from
"
@/request/http
"
;
export
const
topId
=
"
00000000-0000-0000-0000-000000000000
"
;
export
const
$imgAdd
=
function
(
args
,
editorRef
)
{
const
[
pos
,
$file
]
=
args
;
const
formdata
=
new
FormData
();
formdata
.
append
(
"
file
"
,
$file
);
formdata
.
append
(
"
directory
"
,
"
image
"
);
$axios
.
post
(
"
/apaas/common/image/upload
"
,
formdata
,
{
headers
:
{
"
Content-Type
"
:
"
multipart/form-data
"
},
})
.
then
(({
data
})
=>
{
editorRef
.
$img2Url
(
pos
,
data
.
data
);
});
};
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