Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
ZengXiangJun committed Mar 17, 2020
1 parent 43aff79 commit c9ccb60
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
"dependencies": {
"xlsx": "^0.14.5"
}
}
}
5 changes: 5 additions & 0 deletions push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#! /bin/bash

git add .
git commit -m 'change'
git push origin master
4 changes: 2 additions & 2 deletions src/configurator/configurator.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<link rel="icon" href="//assets.enhancer.io/common-template/header/all/img/favicon.ico">
<link rel="icon" href="//assets.wuyuan.io/common-template/header/all/img/favicon.ico">
<!-- 没有网络的时候可以用本地资源。如果启用请注释掉上面一行。发布时一定不要使用本地资源。
<link rel="icon" href="/preview/lib/img/favicon.ico">
-->

<!-- Common widget configurator SDK -->
<script type="text/javascript" src="//assets.enhancer.io/enhancer/workbench-assets/1.2.0/widget-configurator-sdk.js"></script>
<script type="text/javascript" src="//assets.wuyuan.io/enhancer/workbench-assets/1.5.0/widget-configurator-sdk.js"></script>
<!-- 没有网络的时候可以用本地资源。如果启用请注释掉上面一行。发布时一定不要使用本地资源。
<script type="text/javascript" src="/preview/lib/js/widget-configurator-sdk.js"></script>
-->
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ module.exports = function (env) {
middleware: function(req, res, next) {
const url = req.url.split('?')[0];
if (req.method === 'POST') {
const name = req.url.match(/\?wname=([^&]+)/)[1];
if (name != 'xlsx-parser') {
const name = req.url.match(/\?wname=([^&]+)/);
if (name && name[1] != 'xlsx-parser') {
return res.end(JSON.stringify({success: false}))
}
}
Expand Down

0 comments on commit c9ccb60

Please sign in to comment.