Skip to content

Commit 558b5f7

Browse files
GongJSvanoneang
authored andcommitted
Tinymce (#210)
* Update README.md * Update axios.js * feat:富文本 Tinymce * fix:去掉tinymce标识
1 parent e8571ea commit 558b5f7

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,14 @@ QQ群搜索:林间有风 或 643205479
8989

9090
## 版本日志
9191

92-
最新版本 `0.1.0-beta.2`
92+
最新版本 `0.1.0-beta.3`
93+
94+
### 0.1.0-beta.3
95+
96+
1. `U` 首页更新为 card 设计
97+
2. `A` 新增头像上传
98+
3. `A` 新增单元测试
99+
2. `A` 新增switch、rate、tabs、link、tag组件
93100

94101
### 0.1.0-beta.2
95102

src/lin/plugins/axios.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ _axios.interceptors.request.use((originConfig) => {
6767
let item = reqConfig.data[key]
6868
if (item instanceof FileList || item instanceof File || item instanceof Blob) {
6969
hasFile = true
70-
} else if (Object.prototype.toString.call(item) === '[object Object]') {
71-
item = JSON.stringify(item)
70+
} else if (reqConfig.data[key].constructor === Object) {
71+
reqConfig.data[key] = JSON.stringify(reqConfig.data[key])
7272
}
7373
}
7474
})
@@ -257,3 +257,6 @@ export function _delete(url, params = {}) {
257257
params,
258258
})
259259
}
260+
261+
export default _axios
262+

src/plugins/custom/stage-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const CustomRouter = {
2929
right: null,
3030
},
3131
{
32-
title: 'tinymce 富文本',
32+
title: '富文本',
3333
type: 'view',
3434
name: 'Tinymce',
3535
route: '/custom/tinymce',

src/plugins/custom/views/Tinymce.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="lin-container">
3-
<div class="lin-title">Tinymce 富文本舞台页面</div>
3+
<div class="lin-title">富文本舞台页面</div>
44
<div class="lin-wrap">
55
<tinymce @change="change" upload_url="http://dev.lin.colorful3.com/cms/file/" />
66
</div>

0 commit comments

Comments
 (0)