wukai пре 10 месеци
родитељ
комит
cca467fd43
2 измењених фајлова са 12 додато и 11 уклоњено
  1. 9 11
      src/main.js
  2. 3 0
      src/views/obj/app/index.vue

+ 9 - 11
src/main.js

@@ -1,4 +1,4 @@
-import { createApp } from 'vue'
+import {createApp} from 'vue'
 
 import Cookies from 'js-cookie'
 
@@ -7,15 +7,13 @@ import 'element-plus/dist/index.css'
 import locale from 'element-plus/es/locale/lang/zh-cn'
 
 import '@/assets/styles/index.scss' // global css
-
 import App from './App'
 import store from './store'
 import router from './router'
 import directive from './directive' // directive
-
 // 注册指令
 import plugins from './plugins' // plugins
-import { download } from '@/utils/request'
+import {download} from '@/utils/request'
 
 // svg图标
 import 'virtual:svg-icons-register'
@@ -23,10 +21,9 @@ import SvgIcon from '@/components/SvgIcon'
 import elementIcons from '@/components/SvgIcon/svgicon'
 
 import './permission' // permission control
-
-import { useDict } from '@/utils/dict'
-import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
-
+import {useDict} from '@/utils/dict'
+import {addDateRange, handleTree, parseTime, resetForm, selectDictLabel, selectDictLabels} from '@/utils/ruoyi'
+import {getConfigKey} from "@/api/system/config.js"
 // 分页组件
 import Pagination from '@/components/Pagination'
 // 自定义表格工具组件
@@ -55,6 +52,7 @@ app.config.globalProperties.handleTree = handleTree
 app.config.globalProperties.addDateRange = addDateRange
 app.config.globalProperties.selectDictLabel = selectDictLabel
 app.config.globalProperties.selectDictLabels = selectDictLabels
+app.config.globalProperties.getConfigKey = getConfigKey
 
 // 全局组件挂载
 app.component('DictTag', DictTag)
@@ -76,9 +74,9 @@ directive(app)
 
 // 使用element-plus 并且设置全局的大小
 app.use(ElementPlus, {
-  locale: locale,
-  // 支持 large、default、small
-  size: Cookies.get('size') || 'default'
+    locale: locale,
+    // 支持 large、default、small
+    size: Cookies.get('size') || 'default'
 })
 
 app.mount('#app')

+ 3 - 0
src/views/obj/app/index.vue

@@ -204,6 +204,9 @@ function handleSelectionChange(selection) {
 
 /** 新增按钮操作 */
 function handleAdd() {
+  proxy.getConfigKey("pp.start").then(response => {
+    console.log("xxxx",response.msg)
+  });
   reset();
   open.value = true;
   title.value = "添加应用程序管理";