Skip to content

Commit 571abf9

Browse files
committed
fix: 格式
1 parent 245bf25 commit 571abf9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/components/BugReport.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,9 @@ const BugReportForm = {
8888
'+',
8989
);
9090
const content = this.getContent(issueType);
91-
const withConfirm = `
92-
- [ ] I have searched the [issues](https://github.com/vueComponent/${repo}/issues) \
91+
const withConfirm = `- [ ] I have searched the [issues](https://github.com/vueComponent/${repo}/issues) \
9392
of this repository and believe that this is not a duplicate.
94-
93+
9594
${content}
9695
`;
9796
const withMarker = `${withConfirm}\n\n<!-- generated by vue-antd-issue-helper. DO NOT REMOVE -->`;

src/components/createPreview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function createBugPreview({
3535
${actual}
3636
3737
${extra ? `---\n${extra}` : ''}
38-
`.trim();
38+
`.split('\n').map(t => t.trim()).join('\n');
3939
}
4040

4141
function createFeaturePreview({ motivation, proposal }) {
@@ -45,7 +45,7 @@ function createBugPreview({
4545
4646
### What does the proposed API look like?
4747
${proposal}
48-
`.trim();
48+
`.split('\n').map(t => t.trim()).join('\n');
4949
}
5050

5151
function createReproductionLink(link) {

src/i18n/locales/zh/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
对于使用中遇到的问题,请使用以下资源:
88

9-
- 仔细阅读 [文档](http://tangjinzhou.gitee.io/ant-design/docs/vue/introduce-cn/)
9+
- 仔细阅读 [文档](/ant-design/docs/vue/introduce-cn/)
1010
<!-- - 在 [StackOverflow](https://stackoverflow.com/questions/ask?tags=antd) (英文) 或是 [SegmentFault](https://segmentfault.com/t/antd)(中文)搜索和提问 -->
1111

1212
最后,在开 issue 前,可以先搜索一下以往的旧 issue - 你遇到的问题可能已经有人提了,也可能已经在最新版本中被修正。注意:如果你发现一个已经关闭的旧 issue 在最新版本中仍然存在,请不要在旧 issue 下面留言,而应该用下面的表单开一个新的 issue。

0 commit comments

Comments
 (0)