Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
c732c14f
Commit
c732c14f
authored
Mar 11, 2021
by
maggie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异步编译支持
parent
b72bba52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
macro.njk
v2.0/compileServer/templates/macro.njk
+1
-1
constants.ts
v2.0/src/constants.ts
+1
-1
No files found.
v2.0/compileServer/templates/macro.njk
View file @
c732c14f
...
...
@@ -89,7 +89,7 @@ import { {%for service, service_item in type_item %}{{type|capitalize}}{{service
{# 生成函数体 #}
{% macro genMain(mains) %}
{%- for main in mains %}
const {{main.type}}{{main.service|capitalize}}{{main.function|firstToCapital}}Result{{loop.index}} =
await
{{main.type}}{{main.service | capitalize}}Service.{{main.function}}(
const {{main.type}}{{main.service|capitalize}}{{main.function|firstToCapital}}Result{{loop.index}} =
{% if main.async %}{% else %}await {% endif %}
{{main.type}}{{main.service | capitalize}}Service.{{main.function}}(
{%- for param in main.params -%}
{% if param.type == 'var' %}{{param.value}}{% else %}'{{param.value}}'{% endif %}{% if loop.last %}{% else %}, {% endif %}
{%- endfor -%}
...
...
v2.0/src/constants.ts
View file @
c732c14f
...
...
@@ -115,7 +115,7 @@ export const JOIN_NEED_TIMES = 1
export
const
appId
=
'1234'
// 商铺id 拼接vip链接用
export
const
sellerId
=
'
${商铺id}
'
export
const
sellerId
=
'
1234
'
// C端的APP NAME
export
const
C_APP_NAME
:
string
=
`promotioncenter-
${
appId
}
`
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