diff --git a/.history/src/App_20231106090219.vue b/.history/src/App_20231106090219.vue new file mode 100644 index 0000000..21a242e --- /dev/null +++ b/.history/src/App_20231106090219.vue @@ -0,0 +1,333 @@ + + + + + diff --git a/package-lock.json b/package-lock.json index 12020c7..902cbee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3415,7 +3415,7 @@ }, "node_modules/axios": { "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/axios/-/axios-1.6.0.tgz", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", "dependencies": { "follow-redirects": "^1.15.0", @@ -13914,7 +13914,7 @@ }, "axios": { "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/axios/-/axios-1.6.0.tgz", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", "requires": { "follow-redirects": "^1.15.0", diff --git a/src/App.vue b/src/App.vue index e93a85f..21a242e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,15 +5,187 @@ @@ -93,7 +265,7 @@ export default { .el-tree, .tree_menu { /* background-color: rgba(255, 0, 0, 0.0); */ - color: #FFFFFF; + color: #ffffff; background-image: url(./assets/image/bg.png); background-size: cover; } @@ -117,7 +289,7 @@ export default { .el-dialog__body { /* border-top: 0 !important; */ /* background-color: rgba(19, 31, 59, 0); */ - color: #FFFFFF; + color: #ffffff; background-image: url(./assets/image/bg.png); background-size: cover; } diff --git a/src/api/answer.js b/src/api/answer.js new file mode 100644 index 0000000..d7c807c --- /dev/null +++ b/src/api/answer.js @@ -0,0 +1,6 @@ +import axios from "axios"; +//获取正确答案 +export let queryallanswer = () => + axios.get( + "http://172.16.1.254:10014/Handler/Config.ashx?action=queryallanswer" + ); diff --git a/vue.config.js b/vue.config.js index 84601e3..96a197c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,13 +7,13 @@ module.exports = defineConfig({ proxy: { "/wangguan": { target: "http://172.16.1.254:10014/Handler/Config.ashx", - pathRewrite: { '^/wangguan': '' }, + pathRewrite: { "^/wangguan": "" }, secure: false, // 开启代理:在本地会创建一个虚拟服务端,然后发送请求的数据, //并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题 // 必须设置该项 changeOrigin: true, - } - } - } + }, + }, + }, });