Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vipSupplier
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王淑敏
vipSupplier
Commits
a821ffc9
Commit
a821ffc9
authored
Jul 15, 2020
by
初志鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新markdown演示组件调用方式
parent
8f3c48d8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
src/api/markdown.js
+8
-0
src/views/vab/markdown/index.vue
+4
-4
src/views/vab/markdown/js/markdown.js
+0
-0
No files found.
src/api/markdown.js
0 → 100644
View file @
a821ffc9
import
request
from
"axios"
;
export
function
getList
()
{
return
request
({
url
:
"https://cdn.jsdelivr.net/gh/prettier/prettier@master/docs/options.md"
,
method
:
"get"
,
});
}
src/views/vab/markdown/index.vue
View file @
a821ffc9
...
...
@@ -16,8 +16,7 @@
<
script
>
import
marked
from
"marked"
;
import
"github-markdown-css/github-markdown.css"
;
import
md
from
"./js/markdown"
;
import
{
getList
}
from
"@/api/markdown"
;
export
default
{
name
:
"Markdown"
,
data
()
{
...
...
@@ -43,11 +42,12 @@ export default {
this
.
value
=
val
;
this
.
fetchData
();
},
fetchData
()
{
async
fetchData
()
{
this
.
listLoading
=
true
;
switch
(
this
.
value
)
{
case
"0"
:
this
.
prettierList
=
marked
(
md
||
""
,
{
const
{
data
}
=
await
getList
();
this
.
prettierList
=
marked
(
data
||
""
,
{
renderer
:
new
marked
.
Renderer
(),
gfm
:
true
,
tables
:
true
,
...
...
src/views/vab/markdown/js/markdown.js
deleted
100644 → 0
View file @
8f3c48d8
This diff is collapsed.
Click to expand it.
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