修改银行卡跳转 #116

Merged
theluyuan merged 1 commits from xbx into master 2020-11-03 09:05:31 +00:00
2 changed files with 8 additions and 2 deletions

View File

@ -287,6 +287,7 @@ export async function accountadd(data?: any) {
const res = await post<Liveaddrule>('wallect',data); const res = await post<Liveaddrule>('wallect',data);
if(res.code==0){ if(res.code==0){
message.success("新增成功") message.success("新增成功")
router.push("/mine/wallet")
} }
console.log(res) console.log(res)
@ -394,6 +395,7 @@ export async function deleteaccount(data: any) {
const res = await del<Liveaddrule>('wallect/' + data); const res = await del<Liveaddrule>('wallect/' + data);
if(res.code==0){ if(res.code==0){
message.success("删除成功") message.success("删除成功")
router.push("/mine/wallet")
} }
console.log(res) console.log(res)

View File

@ -22,9 +22,9 @@ const createI18n = (config: Config) => ({
}); });
const i18nSymbol = Symbol(); const i18nSymbol = Symbol();
let i18n: any;
export function provideI18n(i18nConfig: Config) { export function provideI18n(i18nConfig: Config) {
const i18n = createI18n(i18nConfig); i18n = createI18n(i18nConfig);
provide(i18nSymbol, i18n); provide(i18nSymbol, i18n);
return i18n; return i18n;
} }
@ -35,3 +35,7 @@ export function useI18n() {
return i18n; return i18n;
} }
export function geti18n(){
return i18n;
}