|
@@ -30,11 +30,7 @@
|
|
|
>
|
|
|
<img
|
|
|
class="cover"
|
|
|
- :src="
|
|
|
- item.cover
|
|
|
- ? item.cover
|
|
|
- : emptyCover
|
|
|
- "
|
|
|
+ :src="item.cover ? item.cover : emptyCover"
|
|
|
style="width: 100%"
|
|
|
/>
|
|
|
<div class="card">
|
|
@@ -111,19 +107,17 @@ const request = axios.create({
|
|
|
const mapEl = ref<HTMLDivElement>();
|
|
|
let AMap, map;
|
|
|
|
|
|
-const queryURL = `${import.meta.env.VITE_SEVER_URL}/fusion-xj/web/fireProject/queryProject`
|
|
|
+const host = location.protocol + "//" + location.host;
|
|
|
+const queryURL = `${host}/fusion-xj/web/fireProject/queryProject`;
|
|
|
|
|
|
// debugger;
|
|
|
const getDataQuest = () => {
|
|
|
return new Promise(async (reslove, reject) => {
|
|
|
- const res = await request.post(
|
|
|
- queryURL,
|
|
|
- {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 10000,
|
|
|
- deptId: state.deptId,
|
|
|
- }
|
|
|
- );
|
|
|
+ const res = await request.post(queryURL, {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10000,
|
|
|
+ deptId: state.deptId,
|
|
|
+ });
|
|
|
console.log("res.data", res);
|
|
|
if (res.status === 200 && res.data.code === 0) {
|
|
|
reslove(res.data.data.list);
|