inl-ui 0.1.121 → 0.1.122-mtapi
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +34 -36
- package/dist/components/index.js +34 -36
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +44 -46
- package/dist/index.d.ts +1 -1
- package/dist/index.js +44 -46
- package/dist/tplib/index.cjs +9 -9
- package/dist/tplib/index.js +9 -9
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/video/index.cjs +12 -12
- package/dist/video/index.js +12 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,7 @@ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$2);
|
|
|
43
43
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
44
44
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
45
45
|
|
|
46
|
-
var version = "0.1.
|
|
46
|
+
var version = "0.1.122-mtapi";
|
|
47
47
|
|
|
48
48
|
const setTheme = theme => {
|
|
49
49
|
if (theme === "dark") {
|
|
@@ -245,7 +245,7 @@ const getCommonHeaders = () => {
|
|
|
245
245
|
};
|
|
246
246
|
const defaultConfig = {
|
|
247
247
|
timeout: 1e3 * 10,
|
|
248
|
-
baseURL: "/
|
|
248
|
+
baseURL: "/mtapi/"
|
|
249
249
|
};
|
|
250
250
|
class ApiInstance {
|
|
251
251
|
instance;
|
|
@@ -316,7 +316,7 @@ class Login$1 {
|
|
|
316
316
|
constructor() {
|
|
317
317
|
this.getQueryInfo();
|
|
318
318
|
this.config.axios = new ApiInstance({
|
|
319
|
-
baseURL: "/
|
|
319
|
+
baseURL: "/mtapi/common/v1/"
|
|
320
320
|
}).instance;
|
|
321
321
|
}
|
|
322
322
|
checkSystemInfo() {
|
|
@@ -6640,14 +6640,14 @@ const Endpoint = RTCEndpoint;
|
|
|
6640
6640
|
|
|
6641
6641
|
const playOneWebRtcMt = async (uuid, domId, dom, token) => {
|
|
6642
6642
|
let play;
|
|
6643
|
-
const response = await fetch(`/
|
|
6643
|
+
const response = await fetch(`/mtapi/vms/v1/camera/getByUuid?uuid=${uuid}`, {
|
|
6644
6644
|
method: "GET",
|
|
6645
6645
|
headers: {
|
|
6646
6646
|
token: token || sessionStorage.getItem("token") || ""
|
|
6647
6647
|
}
|
|
6648
6648
|
});
|
|
6649
6649
|
const res = await response.json();
|
|
6650
|
-
const urlResponse = await fetch(`/
|
|
6650
|
+
const urlResponse = await fetch(`/mtapi/vms/v1/camera/getWebrtcUrls?uuid=${uuid}`, {
|
|
6651
6651
|
method: "GET",
|
|
6652
6652
|
headers: {
|
|
6653
6653
|
token: token || sessionStorage.getItem("token") || ""
|
|
@@ -6959,7 +6959,7 @@ function getAlarmingCamera(config) {
|
|
|
6959
6959
|
} catch (error) {}
|
|
6960
6960
|
let timer = null;
|
|
6961
6961
|
const getCurrentAlarm = async () => {
|
|
6962
|
-
const res = await fetch("/
|
|
6962
|
+
const res = await fetch("/mtapi/alarmlite/v1/record/list", {
|
|
6963
6963
|
method: "POST",
|
|
6964
6964
|
headers,
|
|
6965
6965
|
body: JSON.stringify({
|
|
@@ -6974,7 +6974,7 @@ function getAlarmingCamera(config) {
|
|
|
6974
6974
|
return data.records;
|
|
6975
6975
|
};
|
|
6976
6976
|
const getCameraList = async (instId, zthingCode, alarmId, alarmName) => {
|
|
6977
|
-
const res = await fetch(`/
|
|
6977
|
+
const res = await fetch(`/mtapi/thing/v1/adapter/thing/relation/findZInstsByClass/${instId}/DEVICE_CAMERA`, {
|
|
6978
6978
|
method: "GET",
|
|
6979
6979
|
headers
|
|
6980
6980
|
});
|
|
@@ -7018,7 +7018,7 @@ const findAlarmDeviceById = async (ic, token) => {
|
|
|
7018
7018
|
try {
|
|
7019
7019
|
headers = resetHeader(token);
|
|
7020
7020
|
} catch (error) {}
|
|
7021
|
-
const res = await fetch("/
|
|
7021
|
+
const res = await fetch("/mtapi/thing/v1/adapter/thing/common/findAlarmDevice", {
|
|
7022
7022
|
method: "POST",
|
|
7023
7023
|
headers,
|
|
7024
7024
|
body: JSON.stringify({
|
|
@@ -7031,7 +7031,7 @@ const findAlarmDeviceById = async (ic, token) => {
|
|
|
7031
7031
|
};
|
|
7032
7032
|
const getDeviceList = async (param, token) => {
|
|
7033
7033
|
const headers = resetHeader(token);
|
|
7034
|
-
const res = await fetch("/
|
|
7034
|
+
const res = await fetch("/mtapi/thing/v1/metric/data/getDataList", {
|
|
7035
7035
|
method: "POST",
|
|
7036
7036
|
headers,
|
|
7037
7037
|
body: JSON.stringify(param)
|
|
@@ -7054,7 +7054,7 @@ const paramsToString = obj => {
|
|
|
7054
7054
|
return arr.join("&");
|
|
7055
7055
|
};
|
|
7056
7056
|
const GetDeviceDetailOnce = async (codes, params) => {
|
|
7057
|
-
const resPromise = await fetch("/
|
|
7057
|
+
const resPromise = await fetch("/mtapi/mtip/thing/v2/thingInst/findByCodeList?" + paramsToString(params), {
|
|
7058
7058
|
method: "POST",
|
|
7059
7059
|
headers: resetHeader(params.token),
|
|
7060
7060
|
body: JSON.stringify(codes)
|
|
@@ -7092,7 +7092,7 @@ const RefreshDeviceDetail = async (codes, token) => {
|
|
|
7092
7092
|
}
|
|
7093
7093
|
}
|
|
7094
7094
|
}
|
|
7095
|
-
const resPromise = await fetch("/
|
|
7095
|
+
const resPromise = await fetch("/mtapi/mtip/thing/v2/thingInst/reloadPropertiesValue", {
|
|
7096
7096
|
method: "POST",
|
|
7097
7097
|
headers: resetHeader(token),
|
|
7098
7098
|
body: JSON.stringify(pointCodes)
|
|
@@ -7212,7 +7212,7 @@ const getCorrelationInts = (data, code) => {
|
|
|
7212
7212
|
};
|
|
7213
7213
|
const findRelationEntitiesPage = async (data, code, params) => {
|
|
7214
7214
|
const getDeviceState = getCorrelationInts(data, code);
|
|
7215
|
-
const res = await fetch("/
|
|
7215
|
+
const res = await fetch("/mtapi/mtip/thing/v2/thingInst/findRelationEntitiesPage?" + paramsToString(params), {
|
|
7216
7216
|
headers: resetHeader(params.token),
|
|
7217
7217
|
method: "POST",
|
|
7218
7218
|
body: JSON.stringify(getDeviceState)
|
|
@@ -7323,7 +7323,7 @@ async function checkIframeUrl(url) {
|
|
|
7323
7323
|
const iframeUrl = getIframeUrl(url);
|
|
7324
7324
|
let code = 200;
|
|
7325
7325
|
try {
|
|
7326
|
-
const res = await fetch(`/
|
|
7326
|
+
const res = await fetch(`/mtapi/common/v1/sysconfig/curlForResponseCode?requestMethod=get&url=${encodeURIComponent(iframeUrl)}`, {
|
|
7327
7327
|
headers: getCommonHeaders()
|
|
7328
7328
|
});
|
|
7329
7329
|
if (res.status !== 404) {
|
|
@@ -8789,7 +8789,7 @@ var loginBox = vue.defineComponent({
|
|
|
8789
8789
|
});
|
|
8790
8790
|
const isClould = vue.inject("isClould");
|
|
8791
8791
|
const instance = new ApiInstance({
|
|
8792
|
-
baseURL: "/
|
|
8792
|
+
baseURL: "/mtapi/common/v1/"
|
|
8793
8793
|
}).instance;
|
|
8794
8794
|
const systemTitle = vue.inject("systemTitle");
|
|
8795
8795
|
const platformLogo = vue.inject("platformLogo");
|
|
@@ -9453,26 +9453,26 @@ const isIndependentApp = query => !!query.token && !!query.onlyPage;
|
|
|
9453
9453
|
const loginFun = new Login$1();
|
|
9454
9454
|
const httpUtil = {
|
|
9455
9455
|
requestLogo: async () => {
|
|
9456
|
-
const res = await fetch("/
|
|
9456
|
+
const res = await fetch("/mtapi/common/v1/sysconfig/searchImage?imgType=4&editImg=1&clientType=web");
|
|
9457
9457
|
const blob = await res.blob();
|
|
9458
9458
|
return URL.createObjectURL(blob);
|
|
9459
9459
|
},
|
|
9460
9460
|
requestUserTree: async () => {
|
|
9461
9461
|
const headers = getCommonHeaders();
|
|
9462
|
-
const res = await fetch("/
|
|
9462
|
+
const res = await fetch("/mtapi/common/v1/menu/tree", {
|
|
9463
9463
|
headers
|
|
9464
9464
|
});
|
|
9465
9465
|
const treeData = await res.json();
|
|
9466
9466
|
return treeData.data;
|
|
9467
9467
|
},
|
|
9468
9468
|
requestCopyright: async () => {
|
|
9469
|
-
const res = await fetch("/
|
|
9469
|
+
const res = await fetch("/mtapi/common/v1/sysconfig/getSysConfig?clientType=web");
|
|
9470
9470
|
const data = await res.json();
|
|
9471
9471
|
return data.data.homepageCopyright;
|
|
9472
9472
|
},
|
|
9473
9473
|
postLogout: async () => {
|
|
9474
9474
|
const headers = getCommonHeaders();
|
|
9475
|
-
await fetch("/
|
|
9475
|
+
await fetch("/mtapi/common/v1/log/insert", {
|
|
9476
9476
|
method: "POST",
|
|
9477
9477
|
headers: {
|
|
9478
9478
|
...headers,
|
|
@@ -9723,7 +9723,6 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
9723
9723
|
if (newTab) {
|
|
9724
9724
|
dataId.value = newTab;
|
|
9725
9725
|
}
|
|
9726
|
-
dataId.value = props.name + dataId.value;
|
|
9727
9726
|
const tab = {
|
|
9728
9727
|
name,
|
|
9729
9728
|
url: route.fullPath,
|
|
@@ -9731,10 +9730,9 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
9731
9730
|
uniqueKey: dataId.value,
|
|
9732
9731
|
icon: props.icon,
|
|
9733
9732
|
isExtraTab: true,
|
|
9734
|
-
params: ___default["default"].omit(route.query, "name")
|
|
9735
|
-
ogiginId: newRoute.params.id || newRoute.query.id
|
|
9733
|
+
params: ___default["default"].omit(route.query, "name")
|
|
9736
9734
|
};
|
|
9737
|
-
const detail = detailList.value.find(item => item.uniqueKey === tab.uniqueKey);
|
|
9735
|
+
const detail = detailList.value.find(item => item.key + item.uniqueKey === tab.key + tab.uniqueKey);
|
|
9738
9736
|
if (detail) {
|
|
9739
9737
|
detail.url = newRoute.fullPath;
|
|
9740
9738
|
if (Array.isArray(qiankunState.value.extraTabs)) {
|
|
@@ -9763,7 +9761,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
9763
9761
|
}
|
|
9764
9762
|
});
|
|
9765
9763
|
}
|
|
9766
|
-
const activeTabKey = tab.uniqueKey;
|
|
9764
|
+
const activeTabKey = props.name + tab.uniqueKey;
|
|
9767
9765
|
qiankunState.value = {
|
|
9768
9766
|
...(qiankunState.value ?? {}),
|
|
9769
9767
|
activeTabKey
|
|
@@ -9826,7 +9824,7 @@ const getDetailContainer = () => vue.defineComponent({
|
|
|
9826
9824
|
}
|
|
9827
9825
|
}, [vue.createVNode(props.cpn, {
|
|
9828
9826
|
"key": item.id,
|
|
9829
|
-
"id": item.
|
|
9827
|
+
"id": item.id,
|
|
9830
9828
|
"isActive": isActive.value && isDetailActive,
|
|
9831
9829
|
"onClose": () => handleClose(item),
|
|
9832
9830
|
"onRefresh": () => handleRefresh(item)
|
|
@@ -10125,7 +10123,7 @@ const VideoBox = vue.defineComponent({
|
|
|
10125
10123
|
}]];
|
|
10126
10124
|
const infos = vue.ref([]);
|
|
10127
10125
|
const videoMove = async direction => {
|
|
10128
|
-
await axios__default["default"].get("/
|
|
10126
|
+
await axios__default["default"].get("/mtapi/vms/v1/control/hik/control", {
|
|
10129
10127
|
params: {
|
|
10130
10128
|
cameraUuid: _prop.camera,
|
|
10131
10129
|
command: direction
|
|
@@ -10140,7 +10138,7 @@ const VideoBox = vue.defineComponent({
|
|
|
10140
10138
|
const arr = infos.value.map(info => {
|
|
10141
10139
|
return {};
|
|
10142
10140
|
});
|
|
10143
|
-
const res = await axios__default["default"].get("/
|
|
10141
|
+
const res = await axios__default["default"].get("/mtapi/vms/v1/camera/getThingDevice", {
|
|
10144
10142
|
params: {
|
|
10145
10143
|
cameraUuid: uuid
|
|
10146
10144
|
},
|
|
@@ -10156,7 +10154,7 @@ const VideoBox = vue.defineComponent({
|
|
|
10156
10154
|
};
|
|
10157
10155
|
const camera = vue.ref({});
|
|
10158
10156
|
const getVideoDetail = async val => {
|
|
10159
|
-
const res = await axios__default["default"].get(`/
|
|
10157
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
10160
10158
|
headers: {
|
|
10161
10159
|
token: sessionStorage.getItem("token") || ""
|
|
10162
10160
|
}
|
|
@@ -10187,7 +10185,7 @@ const VideoBox = vue.defineComponent({
|
|
|
10187
10185
|
immediate: true
|
|
10188
10186
|
});
|
|
10189
10187
|
const changeStream = async code => {
|
|
10190
|
-
const res = await axios__default["default"].get(`/
|
|
10188
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
10191
10189
|
headers: {
|
|
10192
10190
|
token: sessionStorage.getItem("token") || ""
|
|
10193
10191
|
},
|
|
@@ -10410,7 +10408,7 @@ var Tree = vue.defineComponent({
|
|
|
10410
10408
|
});
|
|
10411
10409
|
const getQueryGroup = async params => {
|
|
10412
10410
|
return new Promise(async resolve => {
|
|
10413
|
-
const res = await axios__default["default"].get("/
|
|
10411
|
+
const res = await axios__default["default"].get("/mtapi/vms/v1/cameraGroup/tree", {
|
|
10414
10412
|
headers: {
|
|
10415
10413
|
token: sessionStorage.getItem("token") || ""
|
|
10416
10414
|
},
|
|
@@ -10428,7 +10426,7 @@ var Tree = vue.defineComponent({
|
|
|
10428
10426
|
};
|
|
10429
10427
|
const getGroup = async () => {
|
|
10430
10428
|
return new Promise(async resolve => {
|
|
10431
|
-
const res = await axios__default["default"].get("/
|
|
10429
|
+
const res = await axios__default["default"].get("/mtapi/vms/v1/cameraGroupType/findAll", {
|
|
10432
10430
|
headers: {
|
|
10433
10431
|
token: sessionStorage.getItem("token") || ""
|
|
10434
10432
|
}
|
|
@@ -10704,7 +10702,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
10704
10702
|
showInfo.value = _prop.showInfo;
|
|
10705
10703
|
});
|
|
10706
10704
|
const videoMove = async direction => {
|
|
10707
|
-
await axios__default["default"].get("/
|
|
10705
|
+
await axios__default["default"].get("/mtapi/vms/v1/control/hik/control", {
|
|
10708
10706
|
params: {
|
|
10709
10707
|
cameraUuid: _prop.camera,
|
|
10710
10708
|
command: direction
|
|
@@ -10729,7 +10727,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
10729
10727
|
if (tcpcArr.length === 0) {
|
|
10730
10728
|
return;
|
|
10731
10729
|
}
|
|
10732
|
-
const res = await axios__default["default"].post("/
|
|
10730
|
+
const res = await axios__default["default"].post("/mtapi/mtip/thing/v2/thingClient/getPropertiesValueById", tcpcArr, {
|
|
10733
10731
|
headers: {
|
|
10734
10732
|
token: sessionStorage.getItem("token")
|
|
10735
10733
|
}
|
|
@@ -10750,7 +10748,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
10750
10748
|
const arr = infos.value.map(info => {
|
|
10751
10749
|
return {};
|
|
10752
10750
|
});
|
|
10753
|
-
const res = await axios__default["default"].post("/
|
|
10751
|
+
const res = await axios__default["default"].post("/mtapi/vms/v1/cameraRelThing/getByParam", {
|
|
10754
10752
|
cameraUuid: uuid2
|
|
10755
10753
|
}, {
|
|
10756
10754
|
headers: {
|
|
@@ -10770,7 +10768,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
10770
10768
|
};
|
|
10771
10769
|
const camera = vue.ref({});
|
|
10772
10770
|
const getVideoDetail = async val => {
|
|
10773
|
-
const res = await axios__default["default"].get(`/
|
|
10771
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getByUuid?uuid=${val}`, {
|
|
10774
10772
|
headers: {
|
|
10775
10773
|
token: sessionStorage.getItem("token") || ""
|
|
10776
10774
|
}
|
|
@@ -10887,7 +10885,7 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
10887
10885
|
immediate: true
|
|
10888
10886
|
});
|
|
10889
10887
|
const changeStream = async code => {
|
|
10890
|
-
const res = await axios__default["default"].get(`/
|
|
10888
|
+
const res = await axios__default["default"].get(`/mtapi/vms/v1/camera/getWebrtcUrls`, {
|
|
10891
10889
|
headers: {
|
|
10892
10890
|
token: sessionStorage.getItem("token") || ""
|
|
10893
10891
|
},
|
|
@@ -11873,7 +11871,7 @@ const VideoPlayerV1 = vue.defineComponent({
|
|
|
11873
11871
|
videoInfo2.value = camera;
|
|
11874
11872
|
init();
|
|
11875
11873
|
} else if (camera && typeof camera === "string") {
|
|
11876
|
-
const res = await axios__default["default"].post(`/
|
|
11874
|
+
const res = await axios__default["default"].post(`/mtapi/sfvideo/v1/camera/getCameraByCameraId`, {
|
|
11877
11875
|
id: camera
|
|
11878
11876
|
}, {
|
|
11879
11877
|
headers: {
|
|
@@ -12673,7 +12671,7 @@ var index$4 = installComponent(PeopleSelect, "people-select");
|
|
|
12673
12671
|
|
|
12674
12672
|
const getParamList$1 = async data => {
|
|
12675
12673
|
const headers = getCommonHeaders();
|
|
12676
|
-
const res = await fetch("/
|
|
12674
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
12677
12675
|
method: "POST",
|
|
12678
12676
|
body: JSON.stringify(data),
|
|
12679
12677
|
headers
|
|
@@ -12682,7 +12680,7 @@ const getParamList$1 = async data => {
|
|
|
12682
12680
|
};
|
|
12683
12681
|
const getParamDefineList$1 = async groupId => {
|
|
12684
12682
|
const headers = getCommonHeaders();
|
|
12685
|
-
const res = await fetch(`/
|
|
12683
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
12686
12684
|
method: "GET",
|
|
12687
12685
|
headers
|
|
12688
12686
|
});
|
|
@@ -12690,7 +12688,7 @@ const getParamDefineList$1 = async groupId => {
|
|
|
12690
12688
|
};
|
|
12691
12689
|
const batchSaveParamsValue$1 = async form => {
|
|
12692
12690
|
const headers = getCommonHeaders();
|
|
12693
|
-
const res = await fetch("/
|
|
12691
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
12694
12692
|
method: "POST",
|
|
12695
12693
|
headers,
|
|
12696
12694
|
body: JSON.stringify(form)
|
|
@@ -13482,7 +13480,7 @@ const ParamItem = vue.defineComponent({
|
|
|
13482
13480
|
|
|
13483
13481
|
const getParamList = async data => {
|
|
13484
13482
|
const headers = getCommonHeaders();
|
|
13485
|
-
const res = await fetch("/
|
|
13483
|
+
const res = await fetch("/mtapi/common/v1/param/group/list", {
|
|
13486
13484
|
method: "POST",
|
|
13487
13485
|
body: JSON.stringify(data),
|
|
13488
13486
|
headers
|
|
@@ -13491,7 +13489,7 @@ const getParamList = async data => {
|
|
|
13491
13489
|
};
|
|
13492
13490
|
const getParamDefineList = async groupId => {
|
|
13493
13491
|
const headers = getCommonHeaders();
|
|
13494
|
-
const res = await fetch(`/
|
|
13492
|
+
const res = await fetch(`/mtapi/common/v1/param/group/getDefineAndValueListByGroupId?groupId=${groupId}`, {
|
|
13495
13493
|
method: "GET",
|
|
13496
13494
|
headers
|
|
13497
13495
|
});
|
|
@@ -13499,7 +13497,7 @@ const getParamDefineList = async groupId => {
|
|
|
13499
13497
|
};
|
|
13500
13498
|
const batchSaveParamsValue = async form => {
|
|
13501
13499
|
const headers = getCommonHeaders();
|
|
13502
|
-
const res = await fetch("/
|
|
13500
|
+
const res = await fetch("/mtapi/common/v1/param/value/updateBatch", {
|
|
13503
13501
|
method: "POST",
|
|
13504
13502
|
headers,
|
|
13505
13503
|
body: JSON.stringify(form)
|
|
@@ -14154,7 +14152,7 @@ const SszComment = vue.defineComponent({
|
|
|
14154
14152
|
// 评论api的前缀
|
|
14155
14153
|
baseUrl: {
|
|
14156
14154
|
type: String,
|
|
14157
|
-
default: "/
|
|
14155
|
+
default: "/mtapi/taskcoordinationcenter/v2/tri/"
|
|
14158
14156
|
},
|
|
14159
14157
|
// 传给commentBlock的参数 api: http://192.168.5.46:36000/comment
|
|
14160
14158
|
commentProps: {
|
|
@@ -14266,7 +14264,7 @@ function formatDataString(str) {
|
|
|
14266
14264
|
function request(question, streamCallback, doneCallback) {
|
|
14267
14265
|
const controller = new AbortController();
|
|
14268
14266
|
const signal = controller.signal;
|
|
14269
|
-
fetch("/
|
|
14267
|
+
fetch("/mtapi/chat/v1/chat/chat", {
|
|
14270
14268
|
signal,
|
|
14271
14269
|
method: "POST",
|
|
14272
14270
|
headers: {
|
|
@@ -14383,7 +14381,7 @@ async function audioToText(file) {
|
|
|
14383
14381
|
const formData = new FormData();
|
|
14384
14382
|
formData.append("file", file);
|
|
14385
14383
|
formData.append("upload_id", "1");
|
|
14386
|
-
const [path] = await fetch("/
|
|
14384
|
+
const [path] = await fetch("/mtapi/chat/v1/upload", {
|
|
14387
14385
|
// headers,
|
|
14388
14386
|
method: "POST",
|
|
14389
14387
|
body: formData
|
|
@@ -14394,7 +14392,7 @@ async function audioToText(file) {
|
|
|
14394
14392
|
}
|
|
14395
14393
|
const {
|
|
14396
14394
|
result
|
|
14397
|
-
} = await fetch(`/
|
|
14395
|
+
} = await fetch(`/mtapi/chat/v1/translate?path=${path}&session_hash=1`, {
|
|
14398
14396
|
headers,
|
|
14399
14397
|
method: "POST"
|
|
14400
14398
|
}).then(res => res.json());
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { Key } from 'ant-design-vue/lib/table/interface';
|
|
|
11
11
|
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
12
12
|
import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
|
|
13
13
|
|
|
14
|
-
var version = "0.1.
|
|
14
|
+
var version = "0.1.122-mtapi";
|
|
15
15
|
|
|
16
16
|
declare const _default$p: {
|
|
17
17
|
set(theme: string): void;
|