mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 07:08:23 +08:00
feat: add orange-ci and
This commit is contained in:
parent
def496aff8
commit
9811a061b6
|
@ -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>
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -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, './'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user