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
b17bbe73
Commit
b17bbe73
authored
Aug 28, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
🐛
userMock 环境判断
parent
7a94f72d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
isUseVipMock.js
v2.0/dist/utils/package/isUseVipMock.js
+1
-1
isUseVipMock.js.map
v2.0/dist/utils/package/isUseVipMock.js.map
+1
-1
isUseVipMock.ts
v2.0/src/utils/package/isUseVipMock.ts
+1
-1
No files found.
v2.0/dist/utils/package/isUseVipMock.js
View file @
b17bbe73
...
...
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports
.
isUseVipMock
=
void
0
;
// 测试环境 duib2账户mock数据
exports
.
isUseVipMock
=
function
(
context
,
userNick
)
{
var
isTestEnv
=
context
.
env
;
var
isTestEnv
=
context
.
env
===
'test'
;
var
isDuibaAccount
=
userNick
.
startsWith
(
'duiba2'
);
return
isTestEnv
&&
isDuibaAccount
;
};
...
...
v2.0/dist/utils/package/isUseVipMock.js.map
View file @
b17bbe73
{"version":3,"file":"isUseVipMock.js","sourceRoot":"","sources":["../../../src/utils/package/isUseVipMock.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,qBAAqB;AACR,QAAA,YAAY,GAAG,UAAC,OAAgB,EAAE,QAAgB;IAC7D,IAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAA;IAC7B,IAAM,cAAc,GAAG,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IAEpD,OAAO,SAAS,IAAI,cAAc,CAAA;AACpC,CAAC,CAAA"}
\ No newline at end of file
{"version":3,"file":"isUseVipMock.js","sourceRoot":"","sources":["../../../src/utils/package/isUseVipMock.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,qBAAqB;AACR,QAAA,YAAY,GAAG,UAAC,OAAgB,EAAE,QAAgB;IAC7D,IAAM,SAAS,GAAG,OAAO,CAAC,GAAG,KAAK,MAAM,CAAA;IACxC,IAAM,cAAc,GAAG,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IAEpD,OAAO,SAAS,IAAI,cAAc,CAAA;AACpC,CAAC,CAAA"}
\ No newline at end of file
v2.0/src/utils/package/isUseVipMock.ts
View file @
b17bbe73
...
...
@@ -2,7 +2,7 @@
// 测试环境 duib2账户mock数据
export
const
isUseVipMock
=
(
context
:
Context
,
userNick
:
string
)
=>
{
const
isTestEnv
=
context
.
env
const
isTestEnv
=
context
.
env
===
'test'
const
isDuibaAccount
=
userNick
.
startsWith
(
'duiba2'
)
return
isTestEnv
&&
isDuibaAccount
...
...
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