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" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TDesign Pro</title>
<title>TDesign Pro Vue3</title>
</head>
<body>
<div id="app"></div>

View File

@ -1,4 +1,10 @@
export default {
production: {
// 开发环境接口请求
host: 'https://service-exndqyuk-1257786608.gz.apigw.tencentcs.com',
// 开发环境 cdn 路径
cdn: '',
},
development: {
// 开发环境接口请求
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';
const layoutModules = import.meta.glob('../Layouts/*');
@ -31,7 +31,7 @@ const routes: Array<RouteRecordRaw> = [
];
const router = createRouter({
history: createWebHistory(''),
history: createWebHashHistory(),
routes,
scrollBehavior() {
return {

View File

@ -15,5 +15,5 @@
"@/*": ["./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/
export default defineConfig({
base: './',
resolve: {
alias: {
'~': path.resolve(__dirname, './'),