File tree Expand file tree Collapse file tree 5 files changed +15
-17
lines changed Expand file tree Collapse file tree 5 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import { routeWhiteList } from ' @/config/routes'
3
3
4
- const { t } = useI18n ()
5
4
const active = ref (0 )
6
5
const route = useRoute ()
7
6
8
7
const show = computed (() => route .name && routeWhiteList .includes (route .name ))
9
8
</script >
10
9
11
10
<template >
12
- <van-tabbar v-if =" show" v-model =" active" placeholder route >
11
+ <van-tabbar v-if =" show" v-model =" active" route placeholder >
13
12
<van-tabbar-item replace to =" /" >
14
- {{ t('layouts.home') }}
13
+ {{ $ t('layouts.home') }}
15
14
<template #icon >
16
15
<div class =" i-carbon:home" />
17
16
</template >
18
17
</van-tabbar-item >
19
18
<van-tabbar-item replace to =" /profile" >
20
- {{ t('layouts.profile') }}
19
+ {{ $ t('layouts.profile') }}
21
20
<template #icon >
22
21
<div class =" i-carbon:user" />
23
22
</template >
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ async function getCode() {
80
80
v-model.trim =" postData.email"
81
81
:rules =" rules.email"
82
82
name =" email"
83
- :placeholder =" t('forgot-password.email')"
83
+ :placeholder =" $ t('forgot-password.email')"
84
84
/>
85
85
</div >
86
86
@@ -89,7 +89,7 @@ async function getCode() {
89
89
v-model.trim =" postData.code"
90
90
:rules =" rules.code"
91
91
name =" code"
92
- :placeholder =" t('forgot-password.code')"
92
+ :placeholder =" $ t('forgot-password.code')"
93
93
>
94
94
<template #button >
95
95
<van-button size =" small" type =" primary" plain @click =" getCode" >
@@ -105,7 +105,7 @@ async function getCode() {
105
105
type =" password"
106
106
:rules =" rules.password"
107
107
name =" password"
108
- :placeholder =" t('forgot-password.password')"
108
+ :placeholder =" $ t('forgot-password.password')"
109
109
/>
110
110
</div >
111
111
@@ -115,7 +115,7 @@ async function getCode() {
115
115
type =" password"
116
116
:rules =" rules.confirmPassword"
117
117
name =" confirmPassword"
118
- :placeholder =" t('forgot-password.comfirmPassword')"
118
+ :placeholder =" $ t('forgot-password.comfirmPassword')"
119
119
/>
120
120
</div >
121
121
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ async function login(values: any) {
65
65
v-model =" postData.email"
66
66
:rules =" rules.email"
67
67
name =" email"
68
- :placeholder =" t('login.email')"
68
+ :placeholder =" $ t('login.email')"
69
69
/>
70
70
</div >
71
71
@@ -75,7 +75,7 @@ async function login(values: any) {
75
75
type =" password"
76
76
:rules =" rules.password"
77
77
name =" password"
78
- :placeholder =" t('login.password')"
78
+ :placeholder =" $ t('login.password')"
79
79
/>
80
80
</div >
81
81
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ async function getCode() {
84
84
v-model.trim =" postData.email"
85
85
:rules =" rules.email"
86
86
name =" email"
87
- :placeholder =" t('register.email')"
87
+ :placeholder =" $ t('register.email')"
88
88
/>
89
89
</div >
90
90
@@ -93,7 +93,7 @@ async function getCode() {
93
93
v-model.trim =" postData.code"
94
94
:rules =" rules.code"
95
95
name =" code"
96
- :placeholder =" t('register.code')"
96
+ :placeholder =" $ t('register.code')"
97
97
>
98
98
<template #button >
99
99
<van-button size =" small" type =" primary" plain @click =" getCode" >
@@ -108,7 +108,7 @@ async function getCode() {
108
108
v-model.trim =" postData.nickname"
109
109
:rules =" rules.nickname"
110
110
name =" nickname"
111
- :placeholder =" t('register.nickname')"
111
+ :placeholder =" $ t('register.nickname')"
112
112
/>
113
113
</div >
114
114
@@ -118,7 +118,7 @@ async function getCode() {
118
118
type =" password"
119
119
:rules =" rules.password"
120
120
name =" password"
121
- :placeholder =" t('register.password')"
121
+ :placeholder =" $ t('register.password')"
122
122
/>
123
123
</div >
124
124
@@ -128,7 +128,7 @@ async function getCode() {
128
128
type =" password"
129
129
:rules =" rules.confirmPassword"
130
130
name =" confirmPassword"
131
- :placeholder =" t('register.comfirmPassword')"
131
+ :placeholder =" $ t('register.comfirmPassword')"
132
132
/>
133
133
</div >
134
134
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ defineOptions({
6
6
const list = ref ([])
7
7
const loading = ref (false )
8
8
const finished = ref (false )
9
- const { t } = useI18n ()
10
9
11
10
function onLoad() {
12
11
setTimeout (() => {
@@ -51,7 +50,7 @@ onBeforeRouteLeave(() => {
51
50
class =" mb-8 rounded-12"
52
51
>
53
52
<template #title >
54
- {{ t('scrollCache.listItem') }}
53
+ {{ $ t('scrollCache.listItem') }}
55
54
</template >
56
55
57
56
<template #value >
You can’t perform that action at this time.
0 commit comments