Skip to content

Commit 5e4952c

Browse files
committed
remove $ref
1 parent 69265ec commit 5e4952c

File tree

5 files changed

+32
-22
lines changed

5 files changed

+32
-22
lines changed

.env.build

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
VITE_APP_ENV = 'prod'
2-
#自动获取地址推荐
3-
VITE_APP_BASE_URL = 'https://github.jzfai.top/micro-service-api'
1+
#The defined variable must start with VITE_APP_
2+
#notes: login use mock api
3+
4+
VITE_APP_ENV = 'dev'
5+
VITE_APP_BASE_URL = ''
46

57
#image or oss address
6-
VITE_APP_IMAGE_URL = 'https://github.jzfai.top/gofast-image'
8+
VITE_APP_IMAGE_URL = ''
9+
10+
#proxy, use this to test proxy
11+
#VITE_APP_BASE_URL = '/api'

.env.build-test

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
VITE_APP_ENV = 'test'
2-
#自动获取地址推荐
3-
#VITE_APP_BASE_URL = '/micro-service-api'
4-
VITE_APP_BASE_URL = 'https://github.jzfai.top/micro-service-api'
5-
VITE_APP_BASE_WS_URL = ''
1+
#The defined variable must start with VITE_APP_
2+
#notes: login use mock api
3+
4+
VITE_APP_ENV = 'dev'
5+
VITE_APP_BASE_URL = ''
66

77
#image or oss address
8-
VITE_APP_IMAGE_URL = 'https://github.jzfai.top/gofast-image'
8+
VITE_APP_IMAGE_URL = ''
9+
10+
#proxy,use this to test proxy
11+
#VITE_APP_BASE_URL = '/api'

.env.serve-dev

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#The defined variable must start with VITE_APP_
2+
#notes: login use mock api
3+
24
VITE_APP_ENV = 'dev'
3-
VITE_APP_BASE_URL = 'https://github.jzfai.top/micro-service-api'
5+
VITE_APP_BASE_URL = ''
46

57
#image or oss address
6-
VITE_APP_IMAGE_URL = 'https://github.jzfai.top/gofast-image'
8+
VITE_APP_IMAGE_URL = ''
79

810
#proxy, use this to test proxy
911
#VITE_APP_BASE_URL = '/api'
10-
#VITE_APP_PROXY_URL = 'https://github.jzfai.top/micro-service-api'

.env.serve-test

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#The defined variable must start with VITE_APP_
2-
VITE_APP_ENV = 'test'
3-
VITE_APP_BASE_URL = 'https://github.jzfai.top/micro-service-api'
2+
#notes: login use mock api
43

5-
#image or oss address
6-
VITE_APP_IMAGE_URL = 'https://github.jzfai.top/gofast-image'
4+
VITE_APP_ENV = 'dev'
5+
VITE_APP_BASE_URL = ''
6+
7+
#image or oss address
8+
VITE_APP_IMAGE_URL = ''
79

810
#proxy, use this to test proxy
911
#VITE_APP_BASE_URL = '/api'
10-
#VITE_APP_PROXY_URL = 'https://github.jzfai.top/micro-service-api'

src/views/login/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ watch(
8585
/*
8686
* login relative
8787
* */
88-
const subLoading = $ref(false)
88+
const subLoading = ref(false)
8989
//tip message
90-
const tipMessage = $ref('')
90+
const tipMessage = ref()
9191
//sub form
92-
const refLoginForm = $ref(null)
92+
const refLoginForm = ref()
9393
const handleLogin = () => {
94-
refLoginForm.validate((valid) => {
94+
refLoginForm.value.validate((valid) => {
9595
subLoading.value = true
9696
if (valid) loginFunc()
9797
})

0 commit comments

Comments
 (0)