From ca84ff798395dac102aac973ceef4fd306163610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com> Date: Sat, 24 Feb 2018 18:23:04 +0800 Subject: [PATCH] no message Former-commit-id: 13145fb20dc75f658fe2c75e79c922e36ad50712 Former-commit-id: f02aa17eb7fb90115f2ddad317f13cffe61d595d Former-commit-id: a2dc8370c54daecf53ed44e2d5901dbca9371f2d --- src/components/core/Markdown/index.vue | 2 ++ src/components/core/Markdown/plugin/baidupan.js | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/core/Markdown/index.vue b/src/components/core/Markdown/index.vue index a746507c..47115637 100644 --- a/src/components/core/Markdown/index.vue +++ b/src/components/core/Markdown/index.vue @@ -102,6 +102,8 @@ $baidupanHeight: 40px; padding: 5px; padding-right: 15px; float: left; + user-select: none; + cursor: pointer; .icon { float: left; height: $baidupanHeight; diff --git a/src/components/core/Markdown/plugin/baidupan.js b/src/components/core/Markdown/plugin/baidupan.js index c436f9ea..b695a3cb 100644 --- a/src/components/core/Markdown/plugin/baidupan.js +++ b/src/components/core/Markdown/plugin/baidupan.js @@ -4,14 +4,12 @@ export default (quote) => { const bdShareUrlPwd = /^链接: https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+ 密码: [a-z0-9]{4}$/i if (bdShareUrl.test(_quote)) { return `
-
+
-
-
+
${_quote}
+
` } else if (bdShareUrlPwd.test(_quote)) { const url = _quote.match(/https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+/i)