|
@@ -110,6 +110,10 @@ function useEntQuickMonitorModel({ type, id, source }, options) {
|
|
|
const store = useStore()
|
|
|
return store.getters['user/isFree']
|
|
|
})
|
|
|
+ const IsSVipUser = computed(() => {
|
|
|
+ const store = useStore()
|
|
|
+ return store.getters['user/isSuper']
|
|
|
+ })
|
|
|
const loading = ref(false)
|
|
|
const { model, doChange, doFetch, getId, doFetchGroup, groupList }
|
|
|
= useMonitorModel({ type, id }, options)
|
|
@@ -147,7 +151,7 @@ function useEntQuickMonitorModel({ type, id, source }, options) {
|
|
|
}
|
|
|
else {
|
|
|
if (res.data?.limit_count) {
|
|
|
- if (IsFreeUser.value) {
|
|
|
+ if (IsFreeUser.value || IsSVipUser.value) {
|
|
|
return doOpenCollectDialog(limitSource || 'pc_article_ent_limit')
|
|
|
}
|
|
|
else {
|
|
@@ -209,7 +213,7 @@ function useEntQuickMonitorModel({ type, id, source }, options) {
|
|
|
}
|
|
|
else {
|
|
|
if (res.data?.limit_count) {
|
|
|
- if (IsFreeUser.value) {
|
|
|
+ if (IsFreeUser.value || IsSVipUser.value) {
|
|
|
return doOpenCollectDialog(limitSource || 'pc_article_ent_limit')
|
|
|
}
|
|
|
else {
|
|
@@ -264,7 +268,7 @@ function useEntQuickMonitorModel({ type, id, source }, options) {
|
|
|
doOpenDialog('cancel-monitor')
|
|
|
break
|
|
|
case 'apply':
|
|
|
- if (IsFreeUser.value) {
|
|
|
+ if (IsFreeUser.value || IsSVipUser.value) {
|
|
|
doOpenCollectDialog(moreSource || 'pc_article_ent_more')
|
|
|
}
|
|
|
else {
|
|
@@ -306,7 +310,7 @@ function useEntQuickMonitorModel({ type, id, source }, options) {
|
|
|
else {
|
|
|
// 判断是否超出可监控项目个数
|
|
|
if (res.data?.limit_count) {
|
|
|
- if (IsFreeUser.value) {
|
|
|
+ if (IsFreeUser.value || IsSVipUser.value) {
|
|
|
return doOpenCollectDialog('pc_article_ent_limit')
|
|
|
}
|
|
|
else {
|