mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
docs: simplify $t to t
This commit is contained in:
@@ -21,7 +21,7 @@ let demoUid = 0;
|
||||
// helper for demo locales
|
||||
Vue.mixin({
|
||||
computed: {
|
||||
$t() {
|
||||
t() {
|
||||
const { name } = this.$options;
|
||||
const { lang = 'zh-CN' } = (this.$route && this.$route.meta) || {};
|
||||
const prefix = name ? camelize(name) + '.' : '';
|
||||
|
Reference in New Issue
Block a user