|
@@ -33,9 +33,9 @@ import WdInput from 'wot-design-uni/components/wd-input/wd-input.vue'
|
|
|
import { getRect, addUnit } from 'wot-design-uni/components/common/util'
|
|
|
import Card from '@/components/card.vue'
|
|
|
import { get } from 'radash'
|
|
|
-import { DictType } from '@/core/libs/models'
|
|
|
+import { DictType } from '../../../core/libs/models'
|
|
|
|
|
|
-const { features } = usePermissions()
|
|
|
+const { features, clickByPermission } = usePermissions()
|
|
|
const userStore = useUserStore()
|
|
|
const { userInfo } = storeToRefs(userStore)
|
|
|
const router = useRouter()
|
|
@@ -374,14 +374,16 @@ onShareAppMessage(async ({ from, target }) => {
|
|
|
<view
|
|
|
class="flex flex-col items-center text-[rgba(0,0,0,0.85)] text-3.5 font-400 line-height-5.5"
|
|
|
@click="
|
|
|
- handleUpvoteClick(
|
|
|
- {
|
|
|
- upvote: data.ownUpvote,
|
|
|
- circleId: data.id,
|
|
|
- userId: userInfo.userId,
|
|
|
- userName: userInfo.nickname,
|
|
|
- },
|
|
|
- () => run(),
|
|
|
+ clickByPermission('thumbsUp', () =>
|
|
|
+ handleUpvoteClick(
|
|
|
+ {
|
|
|
+ upvote: data.ownUpvote,
|
|
|
+ circleId: data.id,
|
|
|
+ userId: userInfo.userId,
|
|
|
+ userName: userInfo.nickname,
|
|
|
+ },
|
|
|
+ () => run(),
|
|
|
+ ),
|
|
|
)
|
|
|
"
|
|
|
>
|