提交 a0ee5d63 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 修复打包部署前端刷新被拦截的bu

上级 19fa6975
......@@ -2,5 +2,6 @@
ENV = 'production'
# base api
VUE_APP_BASE_API = 'http://localhost:8081/'
# VUE_APP_BASE_API = 'http://localhost:8081/'
VUE_APP_BASE_API = '/'
......@@ -178,7 +178,8 @@ export const constantRoutes = [
]
const createRouter = () => new Router({
mode: 'history', // require service support
// mode: 'history', // require service support
mode: 'hash',
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})
......
......@@ -50,7 +50,7 @@
</template>
<script>
import { post, listDatasource } from '@/api/dataset/dataset'
import { listDatasource } from '@/api/dataset/dataset'
import { codemirror } from 'vue-codemirror'
// 核心样式
import 'codemirror/lib/codemirror.css'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论