mirror of https://github.com/certd/certd
				
				
				
			chore:
							parent
							
								
									082802e119
								
							
						
					
					
						commit
						832b74b66b
					
				| 
						 | 
				
			
			@ -43,14 +43,7 @@
 | 
			
		|||
          <!--          </button>-->
 | 
			
		||||
          <fs-menu class="header-menu" mode="horizontal" :expand-selected="false" :selectable="false" :menus="settingStore.getHeaderMenus" />
 | 
			
		||||
 | 
			
		||||
          <fs-menu
 | 
			
		||||
            v-if="!settingStore?.isAgent && !settingStore.isComm"
 | 
			
		||||
            class="header-menu"
 | 
			
		||||
            mode="horizontal"
 | 
			
		||||
            :expand-selected="false"
 | 
			
		||||
            :selectable="false"
 | 
			
		||||
            :menus="headerMenus"
 | 
			
		||||
          />
 | 
			
		||||
          <fs-menu v-if="!settingStore?.isAgent && !settingStore.isComm" class="header-menu" mode="horizontal" :expand-selected="false" :selectable="false" :menus="headerMenus" />
 | 
			
		||||
          <div class="header-btn">
 | 
			
		||||
            <fs-locale />
 | 
			
		||||
          </div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -108,6 +108,7 @@ export const useSettingStore = defineStore({
 | 
			
		|||
        return {
 | 
			
		||||
          ...menu,
 | 
			
		||||
          name: menu.title,
 | 
			
		||||
          path: menu.path ?? "/" + menu.title,
 | 
			
		||||
          meta: {
 | 
			
		||||
            title: menu.title,
 | 
			
		||||
            icon: menu.icon,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,6 +34,14 @@ export async function SettingsSave(key: string, setting: any) {
 | 
			
		|||
  });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export async function HeaderMenusSettingsSave(setting: any) {
 | 
			
		||||
  return await request({
 | 
			
		||||
    url: apiPrefix + "/headerMenus/save",
 | 
			
		||||
    method: "post",
 | 
			
		||||
    data: setting
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export async function EmailSettingsGet() {
 | 
			
		||||
  return await request({
 | 
			
		||||
    url: apiPrefix + "/getEmailSettings",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@ import { AddReq, compute, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq,
 | 
			
		|||
import { useSettingStore } from "/@/store/modules/settings";
 | 
			
		||||
import { cloneDeep, find, merge, remove } from "lodash-es";
 | 
			
		||||
import { nanoid } from "nanoid";
 | 
			
		||||
import { SettingsSave } from "../api";
 | 
			
		||||
import { HeaderMenusSettingsSave, SettingsSave } from "../api";
 | 
			
		||||
import { utils } from "/@/utils";
 | 
			
		||||
 | 
			
		||||
export default function ({ crudExpose, context }: CreateCrudOptionsProps): CreateCrudOptionsRet {
 | 
			
		||||
| 
						 | 
				
			
			@ -16,7 +16,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
 | 
			
		|||
 | 
			
		||||
  async function saveMenus() {
 | 
			
		||||
    const menus = settingStore.headerMenus;
 | 
			
		||||
    await SettingsSave("sys.header.menus", menus);
 | 
			
		||||
    await HeaderMenusSettingsSave(menus);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const expandedRowKeys = ref<string[]>([]);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue