|
@@ -3,7 +3,10 @@ import shareBox from '@/components/shareBox/index.vue'
|
|
|
import powerPerson from '@/components/subscribe-manager/powerPerson.vue'
|
|
|
import QuickMonitor from '@/composables/quick-monitor/component/QuickMonitor.vue'
|
|
|
import ArticleStar from '@/components/push-list/ArticleStar.vue'
|
|
|
-import { ContentModel } from '@/views/article-content/composables/useContentStore'
|
|
|
+import {
|
|
|
+ ContentModel,
|
|
|
+ ContentId
|
|
|
+} from '@/views/article-content/composables/useContentStore'
|
|
|
import { computed, getCurrentInstance, onMounted, ref } from 'vue'
|
|
|
import { useRoute } from 'vue-router/composables'
|
|
|
import { useStore } from '@/store'
|
|
@@ -40,8 +43,7 @@ const { openShare, useShareRef } = useShare()
|
|
|
// 分发
|
|
|
const { doSubmitDistribute, openDistribute, usePowerRef } = useDistribute()
|
|
|
// 监控
|
|
|
-const contentId = params.id.replace('.html', '')
|
|
|
-const { starModel, doFetchStarState } = useArticleStarModel(contentId)
|
|
|
+const { starModel, doFetchStarState } = useArticleStarModel(ContentId.value)
|
|
|
doFetchStarState()
|
|
|
|
|
|
// 参标
|
|
@@ -50,7 +52,7 @@ const {
|
|
|
JoinBidModel,
|
|
|
doFetchJoinBid,
|
|
|
doChangeJoinBid
|
|
|
-} = useQuickJoinBidModel({ id: contentId })
|
|
|
+} = useQuickJoinBidModel({ id: ContentId.value })
|
|
|
doFetchJoinBid()
|
|
|
|
|
|
const JoinBidInfo = computed(() => {
|
|
@@ -121,7 +123,7 @@ const InWhichContainer = window.parent !== window ? 'in-app' : 'in-web'
|
|
|
class="action-item"
|
|
|
:cache="true"
|
|
|
type="project"
|
|
|
- :params="contentId"
|
|
|
+ :params="ContentId"
|
|
|
></quick-monitor>
|
|
|
|
|
|
<div
|
|
@@ -143,7 +145,7 @@ const InWhichContainer = window.parent !== window ? 'in-app' : 'in-web'
|
|
|
|
|
|
<div class="action-item">
|
|
|
<article-star
|
|
|
- :id="contentId"
|
|
|
+ :id="ContentId"
|
|
|
:star="starModel.star"
|
|
|
@change="doFetchStarState"
|
|
|
@change-labels="doFetchStarState"
|