| | |
| | | <div class="side-header"> |
| | | <div class="side-option flex-display flex-align-center flex-justify-between"> |
| | | <h2 class="title">项目列表</h2> |
| | | <PlusCircleOutlined @click="goAdd(11)" :style="{ fontSize: '20px' }" /> |
| | | <PlusCircleOutlined @click="goAdd" :style="{ fontSize: '20px' }" /> |
| | | </div> |
| | | <div class="border-bottom"></div> |
| | | </div> |
| | |
| | | const goDetail = () => { |
| | | router.push({ name: ERouterName.WORKSPACE }) |
| | | } |
| | | const goAdd = (number:number) => { |
| | | console.log(number, 'number') |
| | | const goAdd = () => { |
| | | router.push({ name: ERouterName.ADD_PROJECT }) |
| | | } |
| | | const cardList = ref<projectCard[]>([]) |
| | |
| | | } |
| | | // 页面初始化 |
| | | const init = async () => { |
| | | spinning.value = !spinning.value |
| | | const res = await getProjectPage(params.value) |
| | | spinning.value = true |
| | | const res = await getProjectPage(params.value).catch(e => { |
| | | spinning.value = false |
| | | }) |
| | | cardList.value = res.data.records |
| | | spinning.value = !spinning.value |
| | | spinning.value = false |
| | | } |
| | | onMounted(() => { |
| | | init() |