Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
e1ba2b1a
Commit
e1ba2b1a
authored
Mar 27, 2019
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fix:Core) 修复编码器保存后不生效的问题 #135 (thx @K4ngx)
parent
927c51fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
base.js
source/core/base.js
+2
-0
No files found.
CHANGELOG.md
View file @
e1ba2b1a
...
...
@@ -7,6 +7,7 @@
### 核心
*
执行命令新增
`antsystem`
函数, 具体见: https://github.com/AntSwordProject/ant_php_extension
*
Fix 编码器保存后不生效的问题 #135 (thx @K4ngx)
## 2019/03/20 `v(2.0.6)`
...
...
source/core/base.js
View file @
e1ba2b1a
...
...
@@ -182,6 +182,8 @@ class Base {
*/
parseEncoder
(
enc
)
{
// 加载编码器
// https://github.com/AntSwordProject/antSword/issues/135#issuecomment-475842870
delete
require
.
cache
[
require
.
resolve
(
`
${
enc
}
`
)];
// QAQ!我也不知道为什么,如果直接require变量名,babel编译就会warning,so我只好加个`咯~
this
[
'__encoder__'
][
enc
.
indexOf
(
`encoder/`
)
>
-
1
?
enc
.
split
(
`encoder/`
)[
1
]:
enc
.
split
(
`encoder\\`
)[
1
]]
=
require
(
`
${
enc
}
`
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment