修复已知BUG
This commit is contained in:
parent
9f60742bcf
commit
220677785d
@ -2,7 +2,7 @@
|
||||
VITE_NODE_ENV=production
|
||||
|
||||
# API 基础路径 - 实际项目中替换为真实的后端接口地址
|
||||
VITE_API_BASE_URL=https://api.your-domain.com
|
||||
VITE_API_BASE_URL=http://127.0.0.1:3000
|
||||
|
||||
# 项目基础路径
|
||||
VITE_BASE_URL=/
|
||||
|
9
src/api/videos.js
Normal file
9
src/api/videos.js
Normal file
@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 获取视频列表
|
||||
* @returns {Promise} 返回视频列表数据
|
||||
*/
|
||||
export function getVideoList() {
|
||||
return request.get('/api/videos/list')
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
import AdminLayout from '../layout/AdminLayout.vue'
|
||||
import { useUserStore } from '../stores/user'
|
||||
|
||||
@ -24,7 +24,7 @@ Promise.all([
|
||||
])
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
history: createWebHashHistory(),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
@ -269,6 +269,15 @@ const router = createRouter({
|
||||
title: '无人机管理',
|
||||
keepAlive: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'videos',
|
||||
name: 'VideoList',
|
||||
component: () => import(/* webpackChunkName: "aipatrol" */ '../views/AIPatrol/videos/index.vue'),
|
||||
meta: {
|
||||
title: '视频列表',
|
||||
keepAlive: true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -4,6 +4,7 @@ import path from 'path'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user