Browse Source

修改url

tangning 2 năm trước cách đây
mục cha
commit
6941b45530

+ 1 - 1
.env.production

@@ -19,7 +19,7 @@ VITE_BUILD_COMPRESS = 'none'
 VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
 
 # Basic interface address SPA
-VITE_GLOB_API_URL=
+VITE_GLOB_API_URL=/service
 
 # File upload address, optional
 # It can be forwarded by nginx or write the actual address directly

+ 4 - 0
src/views/account/overview/caremModal.vue

@@ -36,6 +36,7 @@
   import { GetCameraDetailApi,UnbindCameraApi } from '/@/api/account';
   import { otherInfoStore } from '/@/store/modules/other'
   import { DetailsApi,IncrementDelayApi } from '/@/api/account';
+  import { usePermissionStore } from '/@/store/modules/permission';
 
   const { t } = useI18n();
   export default defineComponent({
@@ -48,6 +49,8 @@
       const otherInfo = otherInfoStore();
       const overviewInfo = computed(() => otherInfo.getOverviewInfo);
       const { createMessage, createConfirm } = useMessage();
+      const permissionStore = usePermissionStore();
+      const { getCheckPerm } = permissionStore;
       console.log('overviewInfo',overviewInfo)
       // const overviewInfo = getOverviewInfo() || {}
       const fileFlow = reactive({
@@ -90,6 +93,7 @@
         {
           title: t('common.operating'),
           dataIndex: 'action',
+          ifShow:getCheckPerm('account-equityCameraUnbind'),
           slots: { customRender: 'action' },
           fixed: 'right',
           width: 80,

+ 4 - 0
src/views/account/overview/interesModal.vue

@@ -36,6 +36,7 @@
   import { GetCameraDetailApi,UnbindCameraApi } from '/@/api/account';
   import { otherInfoStore } from '/@/store/modules/other'
   import { DetailsApi,IncrementDelayApi } from '/@/api/account';
+  import { usePermissionStore } from '/@/store/modules/permission';
 
   const { t } = useI18n();
   export default defineComponent({
@@ -48,6 +49,8 @@
       const otherInfo = otherInfoStore();
       const overviewInfo = computed(() => otherInfo.getOverviewInfo);
       const { createMessage, createConfirm } = useMessage();
+      const permissionStore = usePermissionStore();
+      const { getCheckPerm } = permissionStore;
       console.log('overviewInfo',overviewInfo)
       // const overviewInfo = getOverviewInfo() || {}
       const fileFlow = reactive({
@@ -94,6 +97,7 @@
         },
         {
           title: t('common.operating'),
+          ifShow:getCheckPerm('account-equityRenew'),
           dataIndex: '',
           slots: { customRender: 'action' },
           width: 80,