Explorar o código

20260114提交

王辉 hai 1 mes
pai
achega
18a5abb5bc
Modificáronse 5 ficheiros con 12 adicións e 14 borrados
  1. 4 5
      .env.development
  2. 1 0
      package.json
  3. 4 6
      src/views/auth/monitor/bTab.vue
  4. 2 2
      src/views/myResources/index.vue
  5. 1 1
      vite.config.js

+ 4 - 5
.env.development

@@ -5,12 +5,11 @@ NODE_ENV = development
 VITE_TITLE = 飞行学院
 
 # 接口地址
-VITE_API_BASEURL = http://192.168.207.179:9003
-VITE_FILEURL = http://192.168.207.179:10005/education/
-#VITE_API_BASEURL = http://192.168.1.245:9003
-# VITE_API_BASEURL = http://192.168.31.81:19003
-#VITE_FILEURL = http://192.168.1.245:10005/education/
 # VITE_API_BASEURL = http://192.168.31.14:9003
+VITE_FILEURL = http://192.168.254.26:9000/education/
+# VITE_FILEURL = http://192.168.1.245:10005/education/
+VITE_API_BASEURL = http://127.0.0.1:9003
+# VITE_API_BASEURL = http://192.168.1.245:9003
 # VITE_API_BASEURL = http://192.168.31.6:9003
 
 # 本地端口

+ 1 - 0
package.json

@@ -53,6 +53,7 @@
 		"jsbarcode": "^3.11.5",
 		"lodash-es": "4.17.21",
 		"mavon-editor": "^3.0.1",
+		"moment": "^2.30.1",
 		"nprogress": "0.2.0",
 		"pinia": "2.0.33",
 		"qrcode": "1.5.1",

+ 4 - 6
src/views/auth/monitor/bTab.vue

@@ -24,6 +24,7 @@
 <script setup name="monitorBTab">
 	import monitorApi from '@/api/auth/monitorApi'
 	import TokenInfoList from './tokenInfoList.vue'
+	import dayjs from "dayjs";
 	const table = ref(null)
 	const tokenInfoList = ref()
 	const columns = [
@@ -41,15 +42,12 @@
 			dataIndex: 'name',
 			ellipsis: true
 		},
-		{
-			title: '登录地点',
-			dataIndex: 'latestLoginAddress',
-			ellipsis: true
-		},
 		{
 			title: '最后登录时间',
 			dataIndex: 'lastLoginTime',
-			ellipsis: true
+			customRender: ({ text }) => {
+				return dayjs(text).format('YYYY-MM-DD HH:mm:ss')
+			}
 		},
 		{
 			title: '登录IP',

+ 2 - 2
src/views/myResources/index.vue

@@ -197,12 +197,12 @@
 	import resourceUpload from './resourceUpload.vue'
 	import resourceAuditApi from '@/api/resourceAudit.js'
 	import CustomPagination from '@/components/customPagination.vue'
-	import sysConfig from '@/config/index'
+
 	import tool from '@/utils/tool'
 	const headers = ref({
 		token: tool.data.get('TOKEN')
 	})
-	const action = ref(sysConfig.API_URL+'/api/webapp/dev/file/uploadMinioReturnId')
+	const action = ref('http://127.0.0.1:9003/api/webapp/dev/file/uploadMinioReturnId')
 	// 数据源
 	const dataSource = ref([])
 

+ 1 - 1
vite.config.js

@@ -43,7 +43,7 @@ export default defineConfig(({ command, mode }) => {
 			port: envConfig.VITE_PORT,
 			proxy: {
 				'/api': {
-					target: 'http://192.168.1.245:9003',
+					target: 'http://192.168.31.80:19003',
 					ws: false,
 					changeOrigin: true
 					// rewrite: (path) => path.replace(/^\/api/, '')