You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by gi...@apache.org on 2021/01/21 11:31:24 UTC

[incubator-dolphinscheduler-website] branch asf-site updated: Automated deployment: 19c2b275f529ef1557f436fcde23fbc7eaa2ab34

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 0c738bc  Automated deployment: 19c2b275f529ef1557f436fcde23fbc7eaa2ab34
0c738bc is described below

commit 0c738bc20a3d01110f196a0ba311a8c2a933c2f7
Author: github-actions[bot] <gi...@users.noreply.github.com>
AuthorDate: Thu Jan 21 11:30:52 2021 +0000

    Automated deployment: 19c2b275f529ef1557f436fcde23fbc7eaa2ab34
---
 en-us/development/frontend-development.html | 8 ++++++++
 en-us/development/frontend-development.json | 2 +-
 zh-cn/development/frontend-development.html | 8 ++++++++
 zh-cn/development/frontend-development.json | 2 +-
 4 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/en-us/development/frontend-development.html b/en-us/development/frontend-development.html
index 37773f3..08bf4b3 100644
--- a/en-us/development/frontend-development.html
+++ b/en-us/development/frontend-development.html
@@ -418,6 +418,14 @@ test.then(res =&gt; {
   msg:'failed'
 }
 </code></pre>
+<p>If the interface is a post request, the Content-Type defaults to application/x-www-form-urlencoded; if the Content-Type is changed to application/json,
+Interface parameter transfer needs to be changed to the following way</p>
+<pre><code>io.post('url', payload, null, null, { emulateJSON: false } res =&gt; {
+  resolve(res)
+}).catch(e =&gt; {
+  reject(e)
+})
+</code></pre>
 <h5>Related interface path</h5>
 <p>dag related interface <code>src/js/conf/home/store/dag/actions.js</code></p>
 <p>Data Source Center Related Interfaces  <code>src/js/conf/home/store/datasource/actions.js</code></p>
diff --git a/en-us/development/frontend-development.json b/en-us/development/frontend-development.json
index bdcf0d6..123efa7 100644
--- a/en-us/development/frontend-development.json
+++ b/en-us/development/frontend-development.json
@@ -1,6 +1,6 @@
 {
   "filename": "frontend-development.md",
-  "__html": "<h1>Front-end development documentation</h1>\n<h3>Technical selection</h3>\n<pre><code>Vue mvvm framework\n\nEs6 ECMAScript 6.0\n\nAns-ui Analysys-ui\n\nD3  Visual Library Chart Library\n\nJsplumb connection plugin library\n\nLodash high performance JavaScript utility library\n</code></pre>\n<h3>Development environment</h3>\n<ul>\n<li>\n<h4>Node installation</h4>\n</li>\n</ul>\n<p>Node package download (note version 8.9.4) <code>https://nodejs.org/download/release/v8.9.4/</c [...]
+  "__html": "<h1>Front-end development documentation</h1>\n<h3>Technical selection</h3>\n<pre><code>Vue mvvm framework\n\nEs6 ECMAScript 6.0\n\nAns-ui Analysys-ui\n\nD3  Visual Library Chart Library\n\nJsplumb connection plugin library\n\nLodash high performance JavaScript utility library\n</code></pre>\n<h3>Development environment</h3>\n<ul>\n<li>\n<h4>Node installation</h4>\n</li>\n</ul>\n<p>Node package download (note version 8.9.4) <code>https://nodejs.org/download/release/v8.9.4/</c [...]
   "link": "/dist/en-us/development/frontend-development.html",
   "meta": {}
 }
\ No newline at end of file
diff --git a/zh-cn/development/frontend-development.html b/zh-cn/development/frontend-development.html
index 8fa1770..d03f195 100644
--- a/zh-cn/development/frontend-development.html
+++ b/zh-cn/development/frontend-development.html
@@ -417,6 +417,14 @@ test.then(res =&gt; {
   msg:'失败'
 }
 </code></pre>
+<p>接口如果是post请求,Content-Type默认为application/x-www-form-urlencoded;如果Content-Type改成application/json,
+接口传参需要改成下面的方式</p>
+<pre><code>io.post('url', payload, null, null, { emulateJSON: false } res =&gt; {
+  resolve(res)
+}).catch(e =&gt; {
+  reject(e)
+})
+</code></pre>
 <h5>相关接口路径</h5>
 <p>dag 相关接口 <code>src/js/conf/home/store/dag/actions.js</code></p>
 <p>数据源中心 相关接口 <code>src/js/conf/home/store/datasource/actions.js</code></p>
diff --git a/zh-cn/development/frontend-development.json b/zh-cn/development/frontend-development.json
index e60f82c..63cf199 100644
--- a/zh-cn/development/frontend-development.json
+++ b/zh-cn/development/frontend-development.json
@@ -1,6 +1,6 @@
 {
   "filename": "frontend-development.md",
-  "__html": "<h1>前端开发文档</h1>\n<h3>技术选型</h3>\n<pre><code>Vue mvvm框架\n\nEs6 ECMAScript 6.0\n\nAns-ui Analysys-ui\n\nD3 可视化库图表库\n\nJsplumb 连线插件库\n\nLodash 高性能的 JavaScript 实用工具库\n</code></pre>\n<h3>开发环境搭建</h3>\n<ul>\n<li>\n<h4>Node安装</h4>\n</li>\n</ul>\n<p>Node包下载 (注意版本 8.9.4) <code>https://nodejs.org/download/release/v8.9.4/</code></p>\n<ul>\n<li>\n<h4>前端项目构建</h4>\n</li>\n</ul>\n<p>用命令行模式 <code>cd</code>  进入 <code>dolphinscheduler-ui</code>项目目录并执行 <code>npm install</code> 拉取项目依赖包</p>\n<bloc [...]
+  "__html": "<h1>前端开发文档</h1>\n<h3>技术选型</h3>\n<pre><code>Vue mvvm框架\n\nEs6 ECMAScript 6.0\n\nAns-ui Analysys-ui\n\nD3 可视化库图表库\n\nJsplumb 连线插件库\n\nLodash 高性能的 JavaScript 实用工具库\n</code></pre>\n<h3>开发环境搭建</h3>\n<ul>\n<li>\n<h4>Node安装</h4>\n</li>\n</ul>\n<p>Node包下载 (注意版本 8.9.4) <code>https://nodejs.org/download/release/v8.9.4/</code></p>\n<ul>\n<li>\n<h4>前端项目构建</h4>\n</li>\n</ul>\n<p>用命令行模式 <code>cd</code>  进入 <code>dolphinscheduler-ui</code>项目目录并执行 <code>npm install</code> 拉取项目依赖包</p>\n<bloc [...]
   "link": "/dist/zh-cn/development/frontend-development.html",
   "meta": {}
 }
\ No newline at end of file