Sfoglia il codice sorgente

bug fix: 三维场景查询接口url在正式打包后有错误

任一存 2 anni fa
parent
commit
44f74867e4

+ 1 - 1
packages/qjkankan-editor/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@qjkankan/editor",
-  "version": "1.2.0",
+  "version": "1.2.20230130.1026",
   "private": true,
   "scripts": {
     "serve": "vue-cli-service serve",

+ 3 - 3
packages/qjkankan-editor/src/api/index.js

@@ -150,7 +150,7 @@ export function getSceneList(data, ok) {
     })
     return
   } else {
-    http.postJson(`${URL_FILL}/ucenter/user/scene/newList`, {
+    http.postJson(`/ucenter/user/scene/newList`, {
       cameraId: null,
       cameraType: null,
       endTime: "",
@@ -193,7 +193,7 @@ export function getSceneList(data, ok) {
     searchKey,
   } = data
   return Promise.all([
-    http.postJson(`${URL_FILL}/ucenter/user/scene/getOnlySceneList`, {
+    http.postJson(`/ucenter/user/scene/getOnlySceneList`, {
       cameraId: null,
       cameraType: null,
       endTime: "",
@@ -210,7 +210,7 @@ export function getSceneList(data, ok) {
       searchKey,
       startTime: "",
     }),
-    http.postJson(`${URL_FILL}/ucenter/user/scene/getOnlySceneList`, {
+    http.postJson(`/ucenter/user/scene/getOnlySceneList`, {
       cameraId: null,
       cameraType: null,
       endTime: "",

+ 1 - 1
packages/qjkankan-editor/src/pages/edit.js

@@ -9,7 +9,7 @@ import '@/directives/vTitleInEditor.js'
 import '@/directives/vTooltipInEditor.js'
 import { i18n } from "@/lang"
 
-console.log('v1014.1550');
+console.log(`version: ${process.env.VUE_APP_VERSION}`)
 
 // 热点图标默认大小
 window.g_hotspotCurrentScale = 1

+ 2 - 0
packages/qjkankan-editor/vue.config.js

@@ -1,5 +1,7 @@
 const proxy_url = process.env.VUE_APP_PROXY_URL
 
+process.env.VUE_APP_VERSION = require('./package.json').version
+
 let pages = {
   edit: 'src/pages/edit.js',
   // show: 'src/pages/show.js',