diff --git a/pagesCreateOrder/index/index.vue b/pagesCreateOrder/index/index.vue index 1f4eaef..7ca058c 100644 --- a/pagesCreateOrder/index/index.vue +++ b/pagesCreateOrder/index/index.vue @@ -158,7 +158,7 @@ reactive, ref, nextTick, - watch + watch,getCurrentInstance } from 'vue'; import myCar from './components/car' import go from '@/commons/utils/go.js'; @@ -173,6 +173,7 @@ tbShopInfo } from '@/http/yskApi/user.js' import {hasPermission} from '@/commons/utils/hasPermission.js' + const instance = getCurrentInstance(); let canXiadan=ref(false) async function xiadanClick(){ canXiadan.value=await hasPermission('允许下单')