File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
src/views/login/components Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ yarn-debug.log*
9
9
yarn-error.log *
10
10
package-lock.json
11
11
tests /** /coverage /
12
- .env.production
13
- .env.prodebug
14
- .env.development
15
- .env.devdebug
12
+ .env.dev
13
+ .env.local
14
+ .env.staging
15
+ .env.pro
16
16
nohup.out
17
17
18
18
# Editor directories and files
Original file line number Diff line number Diff line change 1
1
const prodPlugins = [ ]
2
- if ( process . env . NODE_ENV === 'production ' ) {
2
+ if ( process . env . NODE_ENV === 'pro ' ) {
3
3
prodPlugins . push ( 'transform-remove-console' )
4
4
}
5
5
module . exports = {
Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
- "serve" : " vue-cli-service serve" ,
7
- "build" : " vue-cli-service build" ,
6
+ "serve" : " vue-cli-service serve --mode dev --port 28080" ,
7
+ "local" : " vue-cli-service build --mode local" ,
8
+ "staging" : " vue-cli-service serve --mode staging --port 28080" ,
9
+ "build" : " vue-cli-service build --mode pro" ,
8
10
"report" : " vue-cli-service build --report" ,
9
11
"lint" : " vue-cli-service lint"
10
12
},
Original file line number Diff line number Diff line change 17
17
import IconGithub from " @/components/SvgIcon/components/IconGithub" ;
18
18
import IconWechat from " @/components/SvgIcon/components/IconWechat" ;
19
19
20
- const GITHUBCLIENTID = process .env .VUE_APP_GITHUB_CLIENTID
20
+ const GITHUB_CLIENT_ID = process .env .VUE_APP_GITHUB_CLIENT_ID
21
21
export default {
22
22
name: ' SocialSignin' ,
23
23
components: {
36
36
// const url = 'https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=' + client_id + '&redirect_uri=' + redirect_uri
37
37
const thirdPart = window .location .search === ' ' ? " ?thirdPart=github" : " &thirdPart=github"
38
38
const redirect_uri = window .location .href + thirdPart
39
- return this .githubAuthBaseUri + GITHUBCLIENTID + " &redirect_uri=" + encodeURIComponent (redirect_uri)
39
+ return this .githubAuthBaseUri + GITHUB_CLIENT_ID + " &redirect_uri=" + encodeURIComponent (redirect_uri)
40
40
}
41
41
}
42
42
,
You can’t perform that action at this time.
0 commit comments