feat: add orange-ci and

This commit is contained in:
pengYYYYY 2021-09-08 14:55:19 +08:00
parent def496aff8
commit 9811a061b6
5 changed files with 10 additions and 5 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TDesign Pro</title> <title>TDesign Pro Vue3</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -1,4 +1,10 @@
export default { export default {
production: {
// 开发环境接口请求
host: 'https://service-exndqyuk-1257786608.gz.apigw.tencentcs.com',
// 开发环境 cdn 路径
cdn: '',
},
development: { development: {
// 开发环境接口请求 // 开发环境接口请求
host: 'https://service-exndqyuk-1257786608.gz.apigw.tencentcs.com', host: 'https://service-exndqyuk-1257786608.gz.apigw.tencentcs.com',

View File

@ -1,4 +1,4 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'; import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import routeConfig from '@/config/routes'; import routeConfig from '@/config/routes';
const layoutModules = import.meta.glob('../Layouts/*'); const layoutModules = import.meta.glob('../Layouts/*');
@ -31,7 +31,7 @@ const routes: Array<RouteRecordRaw> = [
]; ];
const router = createRouter({ const router = createRouter({
history: createWebHistory(''), history: createWebHashHistory(),
routes, routes,
scrollBehavior() { scrollBehavior() {
return { return {

View File

@ -15,5 +15,5 @@
"@/*": ["./src/*"] "@/*": ["./src/*"]
} }
}, },
"include": ["**/*.ts", "src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "src/config/proxy.ts", "src/pages/detail/base/index.js"] "include": ["**/*.ts", "src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
} }

View File

@ -10,7 +10,6 @@ const path = require('path');
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
base: './',
resolve: { resolve: {
alias: { alias: {
'~': path.resolve(__dirname, './'), '~': path.resolve(__dirname, './'),