Browse Source

添加token

milestone-20251117-DeepChart后台一期
liruiqiang 2 months ago
parent
commit
5c6df9c243
  1. 5
      src/views/UserPermissions/Export.vue

5
src/views/UserPermissions/Export.vue

@ -47,6 +47,9 @@ import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { exportListApi } from '../../api/userPermissions' import { exportListApi } from '../../api/userPermissions'
// token
const token = localStorage.getItem('token')
// //
const router = useRouter(); const router = useRouter();
@ -69,7 +72,7 @@ onMounted(() => {
// //
const exportListAll = async () => { const exportListAll = async () => {
try { try {
const data = await exportListApi();
const data = await exportListApi({token: token});
exportList.value = data.list; exportList.value = data.list;
totalCount.value = data.total; totalCount.value = data.total;
} catch (error) { } catch (error) {

Loading…
Cancel
Save