|
|
@ -21,24 +21,19 @@ |
|
|
|
import {toDateString} from "ele-admin-pro"; |
|
|
|
import {ref, unref, watch} from "vue"; |
|
|
|
import {Design} from "@/api/cms/design/model"; |
|
|
|
import {getDesign, getNavigationByPath, listDesign} from "@/api/cms/design"; |
|
|
|
import {getNavigationByPath} from "@/api/cms/design"; |
|
|
|
import {useThemeStore} from "@/store/modules/theme"; |
|
|
|
import {storeToRefs} from "pinia"; |
|
|
|
import {useRouter} from "vue-router"; |
|
|
|
import useFormData from "@/utils/use-form-data"; |
|
|
|
import { HomeOutlined, UserOutlined } from '@ant-design/icons-vue'; |
|
|
|
import { HomeOutlined } from '@ant-design/icons-vue'; |
|
|
|
import {openUrl} from "@/utils/common"; |
|
|
|
|
|
|
|
const { currentRoute } = useRouter(); |
|
|
|
const themeStore = useThemeStore(); |
|
|
|
const { screenWidth, styleResponsive } = storeToRefs(themeStore); |
|
|
|
const list = ref<Design[]>([]); |
|
|
|
const activeKey = ref('1'); |
|
|
|
const newsBg3 = ref(''); |
|
|
|
const pageId = ref<number>(0); |
|
|
|
const pagePath = ref<string>(); |
|
|
|
const currentPage = ref(1); |
|
|
|
const total = ref(); |
|
|
|
|
|
|
|
// 表单数据 |
|
|
|
const { form,assignFields } = useFormData<Design>({ |
|
|
@ -63,9 +58,7 @@ reload(); |
|
|
|
watch( |
|
|
|
currentRoute, |
|
|
|
(route) => { |
|
|
|
console.log(route,'1111') |
|
|
|
const { path } = unref(route); |
|
|
|
console.log(path,'path') |
|
|
|
if(path){ |
|
|
|
pagePath.value = path; |
|
|
|
reload(); |
|
|
|