|
@@ -27,7 +27,7 @@
|
|
{{ data.authUser }}
|
|
{{ data.authUser }}
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- 密码 -->
|
|
<!-- 密码 -->
|
|
- <el-form-item :label="$t('message.device.formI18nLabel.authPasswd')" prop="authPasswd" label-width="80px">
|
|
|
|
|
|
+ <el-form-item :label="$t('message.device.formI18nLabel.authPasswd')" prop="authPasswd" :label-width="currentLocale === 'en' ? 100 : 80">
|
|
{{ data.authPasswd }}
|
|
{{ data.authPasswd }}
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
@@ -47,9 +47,14 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
-import { reactive } from 'vue';
|
|
|
|
|
|
+import { reactive, computed } from 'vue';
|
|
import api from '/@/api/device';
|
|
import api from '/@/api/device';
|
|
import { useRoute } from 'vue-router';
|
|
import { useRoute } from 'vue-router';
|
|
|
|
+import { useI18n } from 'vue-i18n';
|
|
|
|
+// 国际化
|
|
|
|
+const { locale, t } = useI18n();
|
|
|
|
+
|
|
|
|
+const currentLocale = computed(() => locale.value);
|
|
|
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
|
|