ms project

This commit is contained in:
Captain.B 2020-02-26 18:47:51 +08:00
parent 9c7b776a37
commit 2576b9c035
3 changed files with 6 additions and 2 deletions

View File

@ -26,6 +26,8 @@ const en_US = {
'create': 'Create Project', 'create': 'Create Project',
'delete_confirm': 'Are you sure you want to delete this project?', 'delete_confirm': 'Are you sure you want to delete this project?',
'search_by_name': 'Search by name', 'search_by_name': 'Search by name',
'input_name': 'Please enter a workspace name',
'input_name_2_50': '2 to 50 characters in length',
}, },
i18n: { i18n: {
'home': 'Home', 'home': 'Home',

View File

@ -26,6 +26,8 @@ const zh_CN = {
'create': '创建项目', 'create': '创建项目',
'delete_confirm': '这个项目确定要删除吗?', 'delete_confirm': '这个项目确定要删除吗?',
'search_by_name': '根据名称搜索', 'search_by_name': '根据名称搜索',
'input_name': '请输入项目名称',
'input_name_2_50': '长度在 2 到 50 个字符',
}, },
i18n: { i18n: {
'home': '首页', 'home': '首页',

View File

@ -81,8 +81,8 @@
total: 0, total: 0,
rules: { rules: {
name: [ name: [
{required: true, message: '请输入项目名称', trigger: 'blur'}, {required: true, message: this.$t('project.input_name'), trigger: 'blur'},
{min: 2, max: 50, message: '长度在 2 到 50 个字符', trigger: 'blur'} {min: 2, max: 50, message: this.$t('project.input_name_2_50'), trigger: 'blur'}
] ]
}, },
} }