small changes
This commit is contained in:
@@ -143,6 +143,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { i18n } from '@/locales'
|
||||
import { iTls, defaultInTls } from '@/types/inTls'
|
||||
export default {
|
||||
props: ['inbound', 'tlsConfigs', 'tls_id'],
|
||||
@@ -183,7 +184,7 @@ export default {
|
||||
return <iTls> this.$props.inbound.tls
|
||||
},
|
||||
tlsItems(): any[] {
|
||||
return [ { title: '', value: 0 }, ...this.$props.tlsConfigs?.map((t:any) => { return { title: t.name, value: t.id } } )]
|
||||
return [ { title: i18n.global.t('none'), value: 0 }, ...this.$props.tlsConfigs?.map((t:any) => { return { title: t.name, value: t.id } } )]
|
||||
},
|
||||
tlsId: {
|
||||
get() { return this.tls_id.value?? 0 },
|
||||
|
||||
@@ -4,6 +4,9 @@ export default {
|
||||
failed: "failed",
|
||||
enable: "Enable",
|
||||
disable: "Disable",
|
||||
none: "None",
|
||||
all: "All",
|
||||
filter: "Filter",
|
||||
loading: "Loading...",
|
||||
confirm: "Are you sure ?",
|
||||
yes: "yes",
|
||||
|
||||
@@ -4,6 +4,9 @@ export default {
|
||||
failed: "خطا",
|
||||
enable: "فعال",
|
||||
disable: "غیرفعال",
|
||||
none: "هیچ",
|
||||
all: "همه",
|
||||
filter: "فیلتر",
|
||||
loading: "در حال بارگذاری...",
|
||||
confirm: "آیا مطمئن هستید ؟",
|
||||
yes: "بله",
|
||||
|
||||
@@ -4,6 +4,9 @@ export default {
|
||||
failed: "Thất bại",
|
||||
enable: "Kích hoạt",
|
||||
disable: "Vô hiệu hóa",
|
||||
none: "Không",
|
||||
all: "Tất cả",
|
||||
filter: "Bộ lọc",
|
||||
loading: "Đang tải...",
|
||||
confirm: "Bạn chắc chắn chứ?",
|
||||
yes: "có",
|
||||
|
||||
@@ -4,6 +4,9 @@ export default {
|
||||
failed: "失败",
|
||||
enable: "启用",
|
||||
disable: "禁用",
|
||||
none: "无",
|
||||
all: "全部",
|
||||
filter: "过滤器",
|
||||
loading: "加载中...",
|
||||
confirm: "是否确定?",
|
||||
yes: "确认",
|
||||
|
||||
@@ -5,6 +5,9 @@ export default {
|
||||
failed: "失敗",
|
||||
enable: "啟用",
|
||||
disable: "禁用",
|
||||
none: "無",
|
||||
all: "全部",
|
||||
filter: "過濾器",
|
||||
loading: "加載中...",
|
||||
confirm: "是否確定?",
|
||||
yes: "確認",
|
||||
|
||||
@@ -78,7 +78,6 @@ const loadData = async () => {
|
||||
const msg = await HttpUtils.get('api/users')
|
||||
loading.value = false
|
||||
if (msg.success) {
|
||||
console.log(msg.obj)
|
||||
msg.obj.forEach((u:any) => {
|
||||
const lastLogin = u.lastLogin.split(" ")
|
||||
const localLastLogin = lastLogin.length > 2 ? dateFormatted(Date.parse(lastLogin[0] + " " + lastLogin[1])) : "- -"
|
||||
|
||||
Reference in New Issue
Block a user