mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-06 17:36:44 +08:00
-- bug
This commit is contained in:
10
.env
Normal file
10
.env
Normal file
@@ -0,0 +1,10 @@
|
||||
VITE_BASE=/manage
|
||||
VITE_BASE_API=/
|
||||
VITE_PROXY_URL=http://111.231.196.214:30001/
|
||||
|
||||
|
||||
VITE_BOE_ONLINE_CLASS_URL=https://u-pre.boe.com/pc/course/studyindex?id=
|
||||
VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id=
|
||||
VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId=
|
||||
|
||||
VITE_BOE_API_URL=https://u-pre.boe.com
|
||||
8
.env.boe
Normal file
8
.env.boe
Normal file
@@ -0,0 +1,8 @@
|
||||
VITE_BASE=/fe-student
|
||||
VITE_BASE_API=/manageApi
|
||||
|
||||
VITE_BOE_ONLINE_CLASS_URL=https://u-pre.boe.com/pc/course/studyindex?id=
|
||||
VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id=
|
||||
VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId=
|
||||
|
||||
VITE_BOE_API_URL=https://u-pre.boe.com
|
||||
8
.env.prod
Normal file
8
.env.prod
Normal file
@@ -0,0 +1,8 @@
|
||||
VITE_BASE=/fe-student-release
|
||||
VITE_BASE_API=/manageApi-release
|
||||
|
||||
VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id=
|
||||
VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc-release/case/detail?id=
|
||||
VITE_BOE_TEST_DETAIL_URL=https://u.boe.com/web/quizsummary?detailId=
|
||||
|
||||
VITE_BOE_API_URL=https://u.boe.com
|
||||
8
.env.release
Normal file
8
.env.release
Normal file
@@ -0,0 +1,8 @@
|
||||
VITE_BASE=/fe-student-release
|
||||
VITE_BASE_API=/manageApi-release
|
||||
|
||||
VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id=
|
||||
VITE_BOE_CASS_DETAIL_URL=https://u.boe.com/pc-release/case/detail?id=
|
||||
VITE_BOE_TEST_DETAIL_URL=https://u.boe.com/web/quizsummary?detailId=
|
||||
|
||||
VITE_BOE_API_URL=https://u.boe.com
|
||||
9
.env.test
Normal file
9
.env.test
Normal file
@@ -0,0 +1,9 @@
|
||||
VITE_BASE=/fe-student
|
||||
VITE_BASE_API=/manageApi
|
||||
|
||||
|
||||
VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id=
|
||||
VITE_BOE_CASS_DETAIL_URL=https://u-pre.boe.com/pc/case/detail?id=
|
||||
VITE_BOE_TEST_DETAIL_URL=https://u-pre.boe.com/web/quizsummary?detailId=
|
||||
|
||||
VITE_BOE_API_URL=https://u-pre.boe.com
|
||||
@@ -16,7 +16,7 @@ import axios from "axios";
|
||||
|
||||
axios.defaults.withCredentials = true;
|
||||
const http = axios.create({
|
||||
baseURL: "/manageApi",
|
||||
baseURL: process.env.VITE_BASE_API,
|
||||
timeout: 1000 * 15,
|
||||
// headers: { "Content-Type": "multipart/form-data" },
|
||||
headers: { "Content-Type": "application/json" },
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</a-tree-select>
|
||||
</template>
|
||||
<script setup>
|
||||
import {computed, defineEmits, defineProps, onMounted, ref} from "vue";
|
||||
import {computed, defineEmits, defineProps} from "vue";
|
||||
import {useStore} from "vuex";
|
||||
|
||||
const store = useStore();
|
||||
@@ -33,16 +33,12 @@ const props = defineProps({
|
||||
})
|
||||
const emit = defineEmits({})
|
||||
|
||||
const options = ref([])
|
||||
const options = computed(() => store.state.orgtreeList)
|
||||
|
||||
const id = computed(() => {
|
||||
return props.value
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
options.value = [...store.state.orgtreeList]
|
||||
})
|
||||
|
||||
function change(key, obj) {
|
||||
emit('update:name', obj[0])
|
||||
emit('update:value', key)
|
||||
|
||||
@@ -17,7 +17,7 @@ const routes = [
|
||||
...routesConfig
|
||||
]
|
||||
const router = createRouter({
|
||||
history: createWebHistory("/manage/"),
|
||||
history: createWebHistory(process.env.VITE_BASE),
|
||||
routes,
|
||||
|
||||
})
|
||||
|
||||
@@ -6,15 +6,16 @@
|
||||
* @FilePath: /fe-manage/vue.config.js
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
const { defineConfig } = require("@vue/cli-service");
|
||||
const {defineConfig} = require("@vue/cli-service");
|
||||
|
||||
module.exports = defineConfig({
|
||||
publicPath: "/manage",
|
||||
publicPath: process.env.VITE_BASE,
|
||||
// transpileDependencies: true,
|
||||
devServer: {
|
||||
port: 8080,
|
||||
proxy: {
|
||||
"/manageApi": {
|
||||
target:"http://111.231.196.214:30001/",
|
||||
target: process.env.VITE_PROXY_URL,
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
// secure: false,
|
||||
// ws: false, //表示WebSocket协议
|
||||
|
||||
Reference in New Issue
Block a user