feat:docker环境调试

This commit is contained in:
Dream-wu 2024-05-11 14:09:03 +08:00
parent 63e3d6e2c3
commit 2421374434
8 changed files with 27 additions and 16 deletions

1
.gitignore vendored
View File

@ -39,7 +39,6 @@ Thumbs.db
node_modules
.history
.vscode
dist/
#*.zip
# Log files

View File

@ -10,11 +10,14 @@ CREATE TABLE `onlinespatrol` (
`groupId` varchar(255) DEFAULT NULL COMMENT '业务线',
`createTime` datetime DEFAULT CURRENT_TIMESTAMP,
`datum_address` varchar(255) DEFAULT NULL COMMENT '基准图',
`datum_createtime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '基准图创建时间',
`datum_createtime` datetime DEFAULT CURRENT_TIMESTAMP,
`username` varchar(255) DEFAULT NULL COMMENT '告警人',
`ding_key` varchar(100) DEFAULT NULL COMMENT '钉钉机器人key',
`wechat_key` varchar(100) DEFAULT NULL COMMENT '企业微信机器人key',
`feishu_key` varchar(100) DEFAULT NULL COMMENT '飞书机器人key',
`need_login` int(11) NOT NULL DEFAULT '0' COMMENT '0-不需要登录1-必须登录',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=138 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=142 DEFAULT CHARSET=utf8;
-- 用例执行结果
CREATE TABLE `case_response` (

View File

@ -1,13 +1,21 @@
import axios from 'axios'
import { message } from 'ant-design-vue'
export const baseURL = "http://127.0.0.1:9091";
// 获取当前页面的HOST
const getHost = () => {
const { protocol, host } = window.location;
return `${protocol}//${host}`;
};
export const baseURL = getHost();
const service = axios.create({
withCredentials: true,
baseURL,
timeout: 15000
})
service.interceptors.request.use(
(config) => {
return config

View File

@ -54,7 +54,7 @@ export default defineComponent({
<style>
.sidebar {
height: calc(100vh -64px);
height: calc(100vh - 64px);
overflow: auto;
background-color: #001529;
}

View File

@ -18,7 +18,7 @@
</template>
<script lang="ts" setup>
import { reactive, defineExpose, ref, defineProps } from 'vue'
import { reactive, ref } from 'vue'
import { getFailedCaseInfo } from '@/api/index'
const dataSource = ref<any[]>([])

View File

@ -18,7 +18,7 @@
</template>
<script lang="ts" setup>
import { reactive, defineExpose, ref } from 'vue'
import { reactive, ref } from 'vue'
import { getTimeoutCaseInfo } from '@/api/index'
const dataSource = ref<any[]>([])

View File

@ -22,7 +22,7 @@
</a-row>
</template>
<script lang="ts" setup>
import { defineExpose, ref } from 'vue'
import { ref } from 'vue'
import { getH5Stat } from '@/api/index'
import { ArrowUpOutlined, ArrowDownOutlined } from '@ant-design/icons-vue'

View File

@ -17,12 +17,13 @@ export default defineConfig({
'process.env': process.env,
'process.argv': process.argv
},
// server: {
// proxy: {
// '^/patrol': {
// target: 'http://127.0.0.1:9091', // 代理目标地址
// changeOrigin: true, // 开启代理,在本地会创建一个虚拟服务端,然后发送请求的数据,同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
// },
// }
// }
server: {
host: '127.0.0.1',
// proxy: {
// '^/patrol': {
// target: 'http://127.0.0.1:9091', // 代理目标地址
// changeOrigin: true, // 开启代理,在本地会创建一个虚拟服务端,然后发送请求的数据,同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
// },
// }
}
})