Explorar o código

版本号接口更换

zhangjintao hai 1 ano
pai
achega
242216669c
Modificáronse 3 ficheiros con 5 adicións e 5 borrados
  1. 3 3
      library/components/VabFooter/index.vue
  2. 1 1
      src/api/user.ts
  3. 1 1
      vue.config.js

+ 3 - 3
library/components/VabFooter/index.vue

@@ -7,9 +7,9 @@
   const { title } = storeToRefs(settingsStore)
   const getVersionFn = async () => {
     const { data } = await getVersion({})
-    const list = data.records
-    if (list.length) {
-      cot.value = list[0].versionCode
+    const list = data
+    if (list) {
+      cot.value = list
     } else {
       cot.value = '1.0.0'
     }

+ 1 - 1
src/api/user.ts

@@ -58,7 +58,7 @@ export function register(data: any) {
 //获取版本号列表
 export function getVersion(params: any) {
   return request({
-    url: '/sys/log/page',
+    url: '/sys/log/newVersion',
     method: 'get',
     params,
   })

+ 1 - 1
vue.config.js

@@ -66,7 +66,7 @@ module.exports = defineConfig({
     // 4、webpack5版本前端配置代理无法与mock同时使用,如果一定要用前端代理,需注释setupMiddlewares: require('./mock')
     proxy: {
       [baseURL]: {
-        target: `http://192.168.12.123:10015`,
+        target: `http://192.168.212.157:10015`,
         ws: true,
         changeOrigin: true,
         pathRewrite: {