Commit 76521e20 by zhangxw

1

1 parent 91bf49b8
import request from "./request"; import request from "./request";
const prefix = "/miniappserver";
// 获取所有车辆数据 // 获取所有车辆数据
export const GET_ALL_CAR_LIST = (params) => { export const GET_ALL_CAR_LIST = (params) => {
return request(params, "/miniappserver/monitor/search"); return request(params, `${prefix}/monitor/search`);
}; };
// 获取车辆位置详细信息 // 获取车辆位置详细信息
export const GET_CAR_LOCATION_INFO = (params) => { export const GET_CAR_LOCATION_INFO = (params) => {
return request(params, "/miniappserver/monitor/location"); return request(params, `${prefix}/monitor/location`);
}; };
// 获取常驻地数据 // 获取常驻地数据
export const GET_RESIDENT_DATA = (params) => { export const GET_RESIDENT_DATA = (params) => {
return request(params, "/miniappserver/monitor/location/residentList"); return request(params, `${prefix}/monitor/location/residentList`);
}; };
// 获取轨迹回放数据 // 获取轨迹回放数据
export const GET_REPLAY_DATA = (params) => { export const GET_REPLAY_DATA = (params) => {
// /devicemonitor/api/track/playback return request(params, `${prefix}/monitor/location/trackPointList`);
// /miniappserver/monitor/location/trackPointList
return request(params, "/miniappserver/monitor/location/trackPointList");
}; };
// 获取已设置调频数据 // 获取已设置调频数据
export const GET_FREQ_INFO = (params) => { export const GET_FREQ_INFO = (params) => {
return request(params, "/miniappserver/deviceFreq/getAdjFreqBySn"); return request(params, `${prefix}/deviceFreq/getAdjFreqBySn`);
}; };
// 关闭调频 // 关闭调频
export const CLOSE_FREQ = (params) => { export const CLOSE_FREQ = (params) => {
return request(params, "/miniappserver/deviceFreq/resetAdjFreq"); return request(params, `${prefix}/deviceFreq/resetAdjFreq`);
}; };
// 一键调频 // 一键调频
export const SET_FREQ = (params) => { export const SET_FREQ = (params) => {
return request(params, "/miniappserver/deviceFreq/adjFreq", "POST"); return request(params, `${prefix}/deviceFreq/adjFreq`, "POST");
}; };
// 新增围栏 // 新增围栏
export const ADD_FENCE = (params) => { export const ADD_FENCE = (params) => {
return request(params, "/miniappserver/fence/add", "POST"); return request(params, `${prefix}/fence/add`, "POST");
}; };
...@@ -9,4 +9,6 @@ ...@@ -9,4 +9,6 @@
--van-font-weight-bold: 600 !important; --van-font-weight-bold: 600 !important;
--van-search-action-text-color: var(--base-color) !important; --van-search-action-text-color: var(--base-color) !important;
--van-dropdown-menu-title-active-text-color: var(--base-color) !important; --van-dropdown-menu-title-active-text-color: var(--base-color) !important;
--van-border-radius-sm: 6px !important;
--van-gray-1: #F0F2F5 !important;
} }
\ No newline at end of file \ No newline at end of file
<template> <template>
<div> <div class="map-box">
<slot name="mapBox"></slot> <slot name="mapBox"></slot>
<div v-show="isUploaded"> <div v-show="isUploaded">
<a class="map-cmd-icon location" @click="getLocation"> <a class="map-cmd-icon location" @click="getLocation">
...@@ -91,6 +91,9 @@ export default { ...@@ -91,6 +91,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.map-box {
height: 100%;
}
.map-cmd-icon { .map-cmd-icon {
width: 40px; width: 40px;
height: 40px; height: 40px;
......
...@@ -71,7 +71,8 @@ export default defineComponent({ ...@@ -71,7 +71,8 @@ export default defineComponent({
overflow: hidden; overflow: hidden;
padding-bottom: 40px; padding-bottom: 40px;
.btn-class { .btn-class {
padding: 20px; padding: 15px;
border-bottom: 1px solid #f0f2f5;
width: calc(100% - 40px); width: calc(100% - 40px);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
...@@ -2,8 +2,8 @@ import { createRouter, createWebHistory } from "vue-router"; ...@@ -2,8 +2,8 @@ import { createRouter, createWebHistory } from "vue-router";
import routes from "./routes"; import routes from "./routes";
const router = createRouter({ const router = createRouter({
history: createWebHistory(process.env.BASE_URL), history: createWebHistory("/miniappserver/"),
routes: routes.baseRoutes.concat(routes.tabRoutes), routes: routes.baseRoutes,
}); });
export default router; export default router;
...@@ -22,37 +22,31 @@ const baseRoutes = [ ...@@ -22,37 +22,31 @@ const baseRoutes = [
]; ];
const tabRoutes = [ const tabRoutes = [
{ {
path: "/replay",
name: "replay", name: "replay",
title: "轨迹回放", title: "轨迹回放",
component: () => import("../views/replay.vue"), component: () => import("../views/replay.vue"),
}, },
{ {
path: "/resident",
name: "resident", name: "resident",
title: "常驻地", title: "常驻地",
component: () => import("../views/resident.vue"), component: () => import("../views/resident.vue"),
}, },
{ {
path: "/monitor",
name: "monitor", name: "monitor",
title: "实时监控", title: "实时监控",
component: () => import("../views/monitor.vue"), component: () => import("../views/monitor.vue"),
}, },
{ {
path: "/deviceFreq",
name: "freq", name: "freq",
title: "设备调频", title: "设备调频",
component: () => import("../views/monitor.vue"), component: () => import("../views/monitor.vue"),
}, },
{ {
path: "/fence",
name: "fence", name: "fence",
title: "电子围栏", title: "电子围栏",
component: () => import("../views/monitor.vue"), component: () => import("../views/monitor.vue"),
}, },
{ {
path: "/share",
name: "share", name: "share",
title: "分享找车", title: "分享找车",
component: () => import("../views/monitor.vue"), component: () => import("../views/monitor.vue"),
......
...@@ -18,7 +18,11 @@ instance.defaults.headers.post["Content-Type"] = "application/json"; ...@@ -18,7 +18,11 @@ instance.defaults.headers.post["Content-Type"] = "application/json";
/** 添加请求拦截器 **/ /** 添加请求拦截器 **/
instance.interceptors.request.use( instance.interceptors.request.use(
(config) => { (config) => {
if (config.url.indexOf("/miniappserver/monitor/search") <= -1) { /* eslint-disable */
if (
config.url.indexOf("/miniappserver/monitor/search") <= -1 ||
(config.url.indexOf("/miniappserver/monitor/search") > -1 &&
config.params.pageNumber == 1)) {
// 下拉加载不显示loading // 下拉加载不显示loading
store.commit("showLoading"); store.commit("showLoading");
} }
......
...@@ -345,7 +345,7 @@ export default defineComponent({ ...@@ -345,7 +345,7 @@ export default defineComponent({
.setting-content { .setting-content {
width: calc(100% - 32px); width: calc(100% - 32px);
height: 100%; height: 100%;
padding: 0 16px; padding: 10px 16px;
font-size: 14px; font-size: 14px;
.type-btn { .type-btn {
width: 100%; width: 100%;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
ref="mapContentRefs" ref="mapContentRefs"
> >
<template #mapBox> <template #mapBox>
<div id="container" class="map-container"></div> <div id="container" class="map-container index-map"></div>
</template> </template>
</mapContent> </mapContent>
<!-- 搜索区域 --> <!-- 搜索区域 -->
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<van-search <van-search
class="search-input" class="search-input"
v-model="keyWord" v-model="keyWord"
placeholder="请输入姓名或车牌号搜索" placeholder="输入两位以上关键字搜索"
@search="getCarList(keyWord, true)" @search="getCarList(keyWord, true)"
/> />
<van-list <van-list
...@@ -45,14 +45,14 @@ ...@@ -45,14 +45,14 @@
class="list-item" class="list-item"
:class="(carItem && carItem.id) == item.id ? 'active' : ''" :class="(carItem && carItem.id) == item.id ? 'active' : ''"
> >
<i v-if="item.offLineDuration" class="icon icon-off-line"></i> <!-- <i v-if="item.offLineDuration" class="icon icon-off-line"></i>
<i v-else class="icon icon-on-line"></i> <i v-else class="icon icon-on-line"></i> -->
<div class="item-right"> <div class="item-right">
<span class="item-text">{{ <span class="item-text">{{
(item.ownerName || "--") + " | " + (item.vin || "--") (item.ownerName || "--") + " | " + (item.vin || "--")
}}</span> }}</span>
<span <span
v-if="(carItem && carItem.id) == item.id" v-if="(carItem && carItem.vin) == item.vin"
class="slectedicon" class="slectedicon"
><i class="icon icon-checked"></i ><i class="icon icon-checked"></i
></span> ></span>
...@@ -60,7 +60,10 @@ ...@@ -60,7 +60,10 @@
</div> </div>
</van-cell> </van-cell>
</van-list> </van-list>
<div class="no-data-class" v-if="list.length <= 0 && !searched"> <div
class="no-data-class"
v-if="list.length <= 0 && !searched && !ISLOADING"
>
<img src="../assets/images/no-data.png" alt="" /> <img src="../assets/images/no-data.png" alt="" />
<span>暂无数据</span> <span>暂无数据</span>
</div> </div>
...@@ -74,13 +77,14 @@ ...@@ -74,13 +77,14 @@
</template> </template>
<script> <script>
import { ref, defineComponent, onMounted, watch } from "vue"; import { ref, defineComponent, onMounted, watch, computed } from "vue";
import { useStore } from "vuex";
import mapContent from "@/components/mapContent.vue"; import mapContent from "@/components/mapContent.vue";
import AMapLoader from "@amap/amap-jsapi-loader"; import AMapLoader from "@amap/amap-jsapi-loader";
import { CONSTANT } from "../constant"; import { CONSTANT } from "../constant";
import MAPGEO from "@/utils/mapgeo"; import MAPGEO from "@/utils/mapgeo";
import wx from "wx"; import wx from "wx";
import { useRoute, useRouter } from "vue-router"; import { useRoute } from "vue-router";
import { Dialog, Toast } from "vant"; import { Dialog, Toast } from "vant";
import "vant/es/toast/style"; import "vant/es/toast/style";
import { GET_ALL_CAR_LIST, GET_CAR_LOCATION_INFO } from "@/api/index"; import { GET_ALL_CAR_LIST, GET_CAR_LOCATION_INFO } from "@/api/index";
...@@ -101,11 +105,12 @@ export default defineComponent({ ...@@ -101,11 +105,12 @@ export default defineComponent({
const isShareDead = ref(1); const isShareDead = ref(1);
const carInfoList = ref([]); const carInfoList = ref([]);
const route = useRoute(); const route = useRoute();
const router = useRouter();
const routeQuery = ref(null); const routeQuery = ref(null);
const searched = ref(false); const searched = ref(false);
const pageNumber = ref(0); const pageNumber = ref(0);
const mapIsUploaded = ref(false); const mapIsUploaded = ref(false);
const store = useStore();
const ISLOADING = computed(() => store.state.LOADING);
let map = undefined; let map = undefined;
const refreshCb = () => { const refreshCb = () => {
if (map && carItem.value) { if (map && carItem.value) {
...@@ -118,15 +123,17 @@ export default defineComponent({ ...@@ -118,15 +123,17 @@ export default defineComponent({
watch(mapIsUploaded, (newVal) => { watch(mapIsUploaded, (newVal) => {
// 被分享者打开直接获取车辆定位数据 // 被分享者打开直接获取车辆定位数据
routeQuery.value = route.query; routeQuery.value = route.query;
if (newVal && routeQuery.value.sns) { if (newVal && routeQuery.value.sn) {
if (route.query.token) {
localStorage.setItem("token", route.query.token);
}
carItem.value = { carItem.value = {
sns: routeQuery.value.sns, sns: routeQuery.value.sn,
ownerName: ownerName:
routeQuery.value.ownerName == "null" routeQuery.value.ownerName == "null"
? "--" ? "--"
: routeQuery.value.ownerName, : routeQuery.value.ownerName,
vin: routeQuery.value.vin == "null" ? "--" : routeQuery.value.vin, vin: routeQuery.value.vin == "null" ? "--" : routeQuery.value.vin,
id: routeQuery.value.id,
}; };
getCarInfo(carItem.value); getCarInfo(carItem.value);
} }
...@@ -156,6 +163,7 @@ export default defineComponent({ ...@@ -156,6 +163,7 @@ export default defineComponent({
carInfo: it, carInfo: it,
}, },
}); });
localStorage.setItem("carInfo", JSON.stringify(it));
map = map ? map : mapContentRefs.value.init("container"); map = map ? map : mapContentRefs.value.init("container");
map.clearMap(); map.clearMap();
GET_CAR_LOCATION_INFO({ sns: it.sns }).then((res) => { GET_CAR_LOCATION_INFO({ sns: it.sns }).then((res) => {
...@@ -191,6 +199,7 @@ export default defineComponent({ ...@@ -191,6 +199,7 @@ export default defineComponent({
} }
markers.push(drawMarker(item, map, locates)); markers.push(drawMarker(item, map, locates));
}); });
if (locates.length <= 0) return;
MAPGEO.transferAddressByGroup( MAPGEO.transferAddressByGroup(
{ data: locates, timeoutIds: [] }, { data: locates, timeoutIds: [] },
() => { () => {
...@@ -205,6 +214,7 @@ export default defineComponent({ ...@@ -205,6 +214,7 @@ export default defineComponent({
}; };
const drawMarker = (item, map, locates) => { const drawMarker = (item, map, locates) => {
item.locationType = "gpsLocation"; item.locationType = "gpsLocation";
if (!item[item.locationType]) return;
//修改数据格式方便获取 //修改数据格式方便获取
locates.forEach((val) => { locates.forEach((val) => {
if ( if (
...@@ -379,9 +389,10 @@ export default defineComponent({ ...@@ -379,9 +389,10 @@ export default defineComponent({
(carLocationBtn.onclick = () => { (carLocationBtn.onclick = () => {
let lng = item[item.locationType].elng; let lng = item[item.locationType].elng;
let lat = item[item.locationType].elat; let lat = item[item.locationType].elat;
let address = item[item.locationType].transferAddress;
check(() => { check(() => {
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
url: `../../pages/trace/trace?lat=${lat}&lng=${lng}`, url: `../../mapPackage/pages/tracking?lat=${lat}&lng=${lng}&address=${address}`,
}); });
}); });
}); });
...@@ -391,12 +402,8 @@ export default defineComponent({ ...@@ -391,12 +402,8 @@ export default defineComponent({
(carReplayBtn.onclick = () => { (carReplayBtn.onclick = () => {
check(() => { check(() => {
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
url: `../../pages/findCarInfo/index?sn=${item.sn}&tabItem=replay&source=${item.source}&locationType=${item.locationType}`, url: `../../mapPackage/pages/findCar?sn=${item.sn}&tabItem=replay&source=${item.source}&locationType=${item.locationType}`,
}); });
// router.push({
// name: "info",
// query: { sn: item.sn, tabItem: "replay", source: item.source, locationType: item.locationType },
// });
}); });
}); });
...@@ -405,30 +412,17 @@ export default defineComponent({ ...@@ -405,30 +412,17 @@ export default defineComponent({
(carResidentBtn.onclick = () => { (carResidentBtn.onclick = () => {
check(() => { check(() => {
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
url: `../../pages/findCarInfo/index?sn=${item.sn}&tabItem=resident&source=${item.source}&locationType=${item.locationType}`, url: `../../mapPackage/pages/findCar?sn=${item.sn}&tabItem=resident&source=${item.source}&locationType=${item.locationType}`,
}); });
// router.push({
// name: "info",
// query: { sn: item.sn, tabItem: "resident", source: item.source, locationType: item.locationType },
// });
}); });
}); });
// 实时监控 // 实时监控
carMonitorBtn && carMonitorBtn &&
(carMonitorBtn.onclick = () => { (carMonitorBtn.onclick = () => {
check(() => { check(() => {
router.push({ wx.miniProgram.navigateTo({
name: "info", url: `../../mapPackage/pages/findCar?sn=${item.sn}&tabItem=monitor&source=${item.source}&locationType=${item.locationType}`,
query: {
sn: item.sn,
tabItem: "monitor",
locationType: item.locationType,
source: item.source,
},
}); });
// wx.miniProgram.navigateTo({
// url: `../../pages/findCarInfo/index?sn=${item.sn}&tabItem=monitor&source=${item.source}&locationType=${item.locationType}`,
// });
}); });
}); });
...@@ -438,12 +432,8 @@ export default defineComponent({ ...@@ -438,12 +432,8 @@ export default defineComponent({
// 仅无线设备可调频 // 仅无线设备可调频
return; return;
} else { } else {
// router.push({
// name: "info",
// query: { sn: item.sn, vehicleid: vehicleid, tabItem: "freq" },
// });
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
url: `../../pages/findCarInfo/index?sn=${item.sn}&tabItem=freq&source=${item.source}&locationType=${item.locationType}`, url: `../../mapPackage/pages/findCar?sn=${item.sn}&tabItem=freq&source=${item.source}&locationType=${item.locationType}`,
}); });
} }
}; };
...@@ -453,29 +443,15 @@ export default defineComponent({ ...@@ -453,29 +443,15 @@ export default defineComponent({
if (loginUserId.value || item.source == 0) { if (loginUserId.value || item.source == 0) {
return; return;
} else { } else {
// router.push({
// name: "info",
// query: { sn: item.sn, tabItem: "fence" },
// });
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
url: `../../pages/findCarInfo/index?sn=${item.sn}&tabItem=fence&source=${item.source}&locationType=${item.locationType}`, url: `../../mapPackage/pages/findCar?sn=${item.sn}&tabItem=fence&source=${item.source}&locationType=${item.locationType}`,
}); });
} }
}; };
// 分享找车 // 分享找车
shareBtn.onclick = () => { shareBtn.onclick = () => {
// let currSn = item.sn;
// router.push({
// name: "info",
// query: {
// sn: currSn,
// tabItem: "share",
// source: item.source,
// locationType: item.locationType,
// },
// });
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
url: `../../pages/findCarInfo/index?sn=${item.sn}&tabItem=share&source=${item.source}&locationType=${item.locationType}`, url: `../../mapPackage/pages/findCar?sn=${item.sn}&tabItem=share&source=${item.source}&locationType=${item.locationType}`,
}); });
}; };
//点击车辆打开信息窗体 //点击车辆打开信息窗体
...@@ -504,20 +480,21 @@ export default defineComponent({ ...@@ -504,20 +480,21 @@ export default defineComponent({
list.value = []; list.value = [];
} }
pageNumber.value++; pageNumber.value++;
if (data && data.length < 2) { if (keyWord.value && keyWord.value.length < 2) {
// 关键字小于两个字符 忽略 全量搜索 // 关键字小于两个字符 忽略 全量搜索
data = ""; keyWord.value = "";
} }
searched.value = false;
GET_ALL_CAR_LIST({ GET_ALL_CAR_LIST({
pageSize: 10, pageSize: 10,
pageNumber: pageNumber.value, pageNumber: pageNumber.value,
term: data, term: keyWord.value,
}).then((res) => { }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
list.value = list.value.concat(res.data.list); list.value = list.value.concat(res.data.list);
loading.value = false; loading.value = false;
searched.value = flag; searched.value = flag;
if (res.totalPages === pageNumber.value) { if (res.data.totalPages === pageNumber.value) {
finished.value = true; finished.value = true;
} }
} }
...@@ -542,16 +519,21 @@ export default defineComponent({ ...@@ -542,16 +519,21 @@ export default defineComponent({
isUploaded, isUploaded,
mapIsUploaded, mapIsUploaded,
routeQuery, routeQuery,
ISLOADING,
}; };
}, },
}); });
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.index-map {
position: relative;
}
.search-box { .search-box {
width: 100%; width: 100%;
z-index: 102; z-index: 102;
position: fixed; position: fixed;
top: 0;
.search-header { .search-header {
box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.06); box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.06);
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
...@@ -584,7 +566,7 @@ export default defineComponent({ ...@@ -584,7 +566,7 @@ export default defineComponent({
border-radius: 12px; border-radius: 12px;
} }
.list-box { .list-box {
max-height: 450px; max-height: 464px;
overflow-y: auto; overflow-y: auto;
.list-item { .list-item {
height: 52px; height: 52px;
......
...@@ -53,6 +53,7 @@ import resident from "./resident.vue"; ...@@ -53,6 +53,7 @@ import resident from "./resident.vue";
import fence from "./fence.vue"; import fence from "./fence.vue";
import share from "./share.vue"; import share from "./share.vue";
import freq from "./freq.vue"; import freq from "./freq.vue";
import wx from "wx";
export default defineComponent({ export default defineComponent({
name: "InfoPage", name: "InfoPage",
components: { components: {
...@@ -73,6 +74,12 @@ export default defineComponent({ ...@@ -73,6 +74,12 @@ export default defineComponent({
nextTick(() => { nextTick(() => {
monitorRefs.value = instance.refs.monitorRefs; monitorRefs.value = instance.refs.monitorRefs;
}); });
let carInfo = JSON.parse(localStorage.getItem("carInfo"));
wx.miniProgram.postMessage({
data: {
carInfo: carInfo,
},
});
}); });
const changeTabItem = (e) => { const changeTabItem = (e) => {
// 切换tab 清除定时器 // 切换tab 清除定时器
......
...@@ -22,11 +22,13 @@ ...@@ -22,11 +22,13 @@
v-for="(item, index) in locationList" v-for="(item, index) in locationList"
:key="index" :key="index"
> >
<p class="title"> <div class="index-text">
<span>{{ index + 1 }}</span <span>{{ index + 1 }}</span>
>&nbsp;&nbsp;{{ item.transferAddress }} </div>
</p> <div class="right-text">
<p class="time">{{ item.time }}</p> <p class="title">{{ item.transferAddress }}</p>
<p class="time">{{ item.time }}</p>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -93,10 +95,14 @@ export default { ...@@ -93,10 +95,14 @@ export default {
if (listScroll.value === 0) { if (listScroll.value === 0) {
flag = true; flag = true;
} }
if (flag && newVal >= 100) { if (flag && newVal >= 50) {
isShowAllList.value = false; isShowAllList.value = false;
} }
if (newVal <= -100 && listNode.scrollTop === 0) { if (
newVal <= -50 &&
listNode.scrollTop === 0 &&
locationList.value.length > 2
) {
// 上滑 // 上滑
isShowAllList.value = true; isShowAllList.value = true;
} }
...@@ -246,11 +252,19 @@ export default { ...@@ -246,11 +252,19 @@ export default {
padding: 5px 15px 0 15px; padding: 5px 15px 0 15px;
font-size: 14px; font-size: 14px;
.list-item { .list-item {
height: 39px; padding: 14px 0 0 0;
border-bottom: 1px solid #f0f2f5;
padding: 14px 0;
display: flex; display: flex;
flex-flow: column; .index-text {
margin-top: 3px;
min-width: 24px;
}
.right-text {
display: flex;
flex-flow: column;
overflow: hidden;
padding-bottom: 14px;
border-bottom: 1px solid #f0f2f5;
}
.title { .title {
color: #000; color: #000;
overflow: hidden; overflow: hidden;
......
...@@ -500,7 +500,7 @@ export default defineComponent({ ...@@ -500,7 +500,7 @@ export default defineComponent({
justify-content: space-between; justify-content: space-between;
text-align: center; text-align: center;
align-items: center; align-items: center;
padding-bottom: 20px; padding: 20px 0;
font-size: 14px; font-size: 14px;
border-bottom: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5;
.label { .label {
......
...@@ -11,6 +11,7 @@ function resolve(dir) { ...@@ -11,6 +11,7 @@ function resolve(dir) {
return path.join(__dirname, ".", dir); return path.join(__dirname, ".", dir);
} }
module.exports = defineConfig({ module.exports = defineConfig({
publicPath: "/miniappserver/",
transpileDependencies: true, transpileDependencies: true,
devServer: { devServer: {
port: 9527, port: 9527,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!