mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-13 04:33:44 +08:00
发布代码生成、更新20+表单组件,优化数据字典,gf版本更新到2.3.1
This commit is contained in:
@@ -2,8 +2,8 @@ import { toRaw, unref } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
import { RouteRecordRaw } from 'vue-router';
|
||||
import { store } from '@/store';
|
||||
import { asyncRoutes, constantRouter } from '@/router/index';
|
||||
import { generatorDynamicRouter, removeHiddenMenus } from '@/router/generator-routers';
|
||||
import { asyncRoutes, constantRouter } from '@/router';
|
||||
import { generatorDynamicRouter } from '@/router/generator-routers';
|
||||
import { useProjectSetting } from '@/hooks/setting/useProjectSetting';
|
||||
|
||||
interface TreeHelperConfig {
|
||||
|
||||
@@ -6,9 +6,13 @@ Object.keys(allModules).forEach((path) => {
|
||||
});
|
||||
|
||||
// export default modules
|
||||
// @ts-ignore
|
||||
import asyncRoute from './async-route';
|
||||
// @ts-ignore
|
||||
import user from './user';
|
||||
// @ts-ignore
|
||||
import tabsView from './tabs-view';
|
||||
// @ts-ignore
|
||||
import lockscreen from './lockscreen';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -21,7 +21,6 @@ export const notificationStore = defineStore({
|
||||
},
|
||||
addMessages(message) {
|
||||
message = JSON.parse(message);
|
||||
console.log('message:' + JSON.stringify(message));
|
||||
if (
|
||||
message.event !== undefined &&
|
||||
message.event === 'notice' &&
|
||||
|
||||
@@ -55,7 +55,9 @@ export const useTabsViewStore = defineStore({
|
||||
},
|
||||
closeOtherTabs(route) {
|
||||
// 关闭其他
|
||||
this.tabsList = this.tabsList.filter((item) => item.fullPath == route.fullPath || (item?.meta?.affix ?? false));
|
||||
this.tabsList = this.tabsList.filter(
|
||||
(item) => item.fullPath == route.fullPath || (item?.meta?.affix ?? false)
|
||||
);
|
||||
},
|
||||
closeCurrentTab(route) {
|
||||
// 关闭当前页
|
||||
|
||||
@@ -86,6 +86,7 @@ export const useUserStore = defineStore({
|
||||
|
||||
// 获取用户信息
|
||||
GetInfo() {
|
||||
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
||||
const that = this;
|
||||
return new Promise((resolve, reject) => {
|
||||
getUserInfo()
|
||||
@@ -108,6 +109,7 @@ export const useUserStore = defineStore({
|
||||
},
|
||||
// 获取用户信息
|
||||
GetConfig() {
|
||||
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
||||
const that = this;
|
||||
return new Promise((resolve, reject) => {
|
||||
getConfig()
|
||||
|
||||
Reference in New Issue
Block a user