From dbe3df5eddbefae56a81cf04c06a8a4481ced3f0 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 22 May 2025 22:41:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=88=9D=E5=A7=8B=E5=8C=96=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 ++ src/views/system/user/index.vue | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index c01e80d..96cd5eb 100644 --- a/src/main.js +++ b/src/main.js @@ -26,6 +26,7 @@ import elementIcons from '@/components/SvgIcon/svgicon' import './permission' // permission control import { useDict } from '@/utils/dict' +import { getConfigKey } from "@/api/system/config" import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi' // 分页组件 @@ -52,6 +53,7 @@ app.config.globalProperties.parseTime = parseTime app.config.globalProperties.resetForm = resetForm app.config.globalProperties.handleTree = handleTree app.config.globalProperties.addDateRange = addDateRange +app.config.globalProperties.getConfigKey = getConfigKey app.config.globalProperties.selectDictLabel = selectDictLabel app.config.globalProperties.selectDictLabels = selectDictLabels diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 86de9e1..cac6f5d 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -533,6 +533,11 @@ function submitForm() { }) } -getDeptTree() -getList() +onMounted(() => { + getDeptTree() + getList() + proxy.getConfigKey("sys.user.initPassword").then(response => { + initPassword.value = response.msg + }) +})