|
|
@ -28,6 +28,8 @@ |
|
|
|
import {getindexarticleitem} from '@/api/mainHome' |
|
|
|
import {getindexarticleitem} from '@/api/mainHome' |
|
|
|
import { useRoute,useRouter } from 'vue-router'; |
|
|
|
import { useRoute,useRouter } from 'vue-router'; |
|
|
|
import { ref } from 'vue'; |
|
|
|
import { ref } from 'vue'; |
|
|
|
|
|
|
|
import { useSettingStore } from '/@/store/modules/setting'; |
|
|
|
|
|
|
|
const settingStore = useSettingStore(); |
|
|
|
const route = useRoute() |
|
|
|
const route = useRoute() |
|
|
|
const router = useRouter() |
|
|
|
const router = useRouter() |
|
|
|
const id = route.query.id |
|
|
|
const id = route.query.id |
|
|
@ -43,6 +45,14 @@ const getInfo = async () => { |
|
|
|
info.value = res[0] |
|
|
|
info.value = res[0] |
|
|
|
} |
|
|
|
} |
|
|
|
getInfo() |
|
|
|
getInfo() |
|
|
|
|
|
|
|
if(Object.keys(route.query).length > 1 && route.query.type == 2) { |
|
|
|
|
|
|
|
console.log('设置'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
settingStore.serIndex(5) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else if(Object.keys(route.query).length > 1 && route.query.type == 3) { |
|
|
|
|
|
|
|
settingStore.serIndex(6) |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less"> |
|
|
|
<style scoped lang="less"> |
|
|
|