a1300399510@qq.com 提交于 2023/03/30 -12:20:01

This commit is contained in:
XiaoMo 2023-03-30 12:20:10 +08:00
parent 02078d3212
commit 2d74c02b87
7 changed files with 83 additions and 19 deletions

View File

@ -143,7 +143,6 @@ export default {
return { return {
collapseShow: false, // collapseShow: false, //
a: 0, a: 0,
baseURL: "https://offer.gter.net",
tab: "Offer榜", tab: "Offer榜",
headMorePopState: false, // headMorePopState: false, //
islogin: false, islogin: false,
@ -198,7 +197,6 @@ export default {
this.$http.get("/widget", { this.$http.get("/widget", {
type: "menu", type: "menu",
}).then((res) => { }).then((res) => {
console.log(res);
if (res.code != 200) return; if (res.code != 200) return;
this.menu = res.data.menu.data; this.menu = res.data.menu.data;
}); });

View File

@ -18,6 +18,8 @@ const Collect = () => import('views/index/collect/Collect')
const AllSections = () => import('views/index/allSections/AllSections') const AllSections = () => import('views/index/allSections/AllSections')
const search = () => import('views/search/search') const search = () => import('views/search/search')
const SearchResult = () => import('views/search/searchResult/SearchResult') const SearchResult = () => import('views/search/searchResult/SearchResult')
const user = () => import('views/user/user')
const userIndex = () => import('views/user/UserIndex')
const routes = [ const routes = [
{ {
@ -68,6 +70,21 @@ const routes = [
} }
}, },
] ]
}, {
path: '/user', // 搜索结果
name: 'user',
redirect: "/userIndex",
component: user,
children: [
{
path: '/userIndex',
name: 'userIndex',
component: userIndex,
meta: {
title: "我的寄托"
}
},
]
} }
] ]

View File

@ -10,6 +10,7 @@ import { skipUrl, pageStop, pageMove, goTologin } from "@/utils/common.js"
axios.defaults.withCredentials = true axios.defaults.withCredentials = true
axios.defaults.emulateJSON = true axios.defaults.emulateJSON = true
baseURL = "https://offer.gter.net/api" baseURL = "https://offer.gter.net/api"
console.log("baseURL",baseURL);
const service = axios.create({ const service = axios.create({
baseURL, baseURL,
timeout: 5000 timeout: 5000

View File

@ -11,7 +11,7 @@
import HeaderNav from "@/components/HeaderNav"; import HeaderNav from "@/components/HeaderNav";
export default { export default {
name: 'GterforumwebSearch', name: 'search',
data() { data() {
return { return {

29
src/views/user/UserIndex.vue Executable file
View File

@ -0,0 +1,29 @@
<template>
<div>
发给规范化
</div>
</template>
<script>
export default {
name: 'userIndex',
data() {
return {
};
},
mounted() {
},
methods: {
},
};
</script>
<style lang="scss" scoped>
</style>

31
src/views/user/user.vue Executable file
View File

@ -0,0 +1,31 @@
<template>
<div>
<header-nav :issearch="false" :needgetuser="true">
<template slot="header-title">我的寄托</template>
</header-nav>
<router-view />
</div>
</template>
<script>
import HeaderNav from "@/components/HeaderNav";
export default {
name: 'GterforumwebUser',
data() {
return {
};
},
mounted() {
},
methods: {
},
};
</script>
<style lang="scss" scoped></style>

View File

@ -5,23 +5,11 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
module.exports = defineConfig({ module.exports = defineConfig({
//开启代理服务器(方式一)
devServer: {
//请求服务器的地址
proxy: 'https://forum.gter.net'
},
// devServer: { // devServer: {
// proxy: { // //请求服务器的地址
// '/api': { // proxy: 'https://forum.gter.net'
// target: 'https://forum.gter.net', // },
// changeOrigin: true,
// pathRewrite: {
// '^/api': ''
// }
// }
// }
// },
transpileDependencies: true, transpileDependencies: true,
configureWebpack: { configureWebpack: {
resolve: { resolve: {