Skip to content

Commit

Permalink
feat(sys-server): rewrite all db orm in sys server, use mongo db api …
Browse files Browse the repository at this point in the history
…instead
  • Loading branch information
maslow committed Oct 7, 2021
1 parent 8064384 commit 2c54c05
Show file tree
Hide file tree
Showing 32 changed files with 5,184 additions and 4,829 deletions.
2 changes: 1 addition & 1 deletion packages/system-client/src/views/application/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default {
// 执行创建请求
const res = await createApplication({ name: data.name })
if (!res.data?.id) {
if (!res.data?.insertedId) {
this.$notify({
type: 'error',
title: '操作失败',
Expand Down
2 changes: 1 addition & 1 deletion packages/system-client/src/views/cloudfunction/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export default {
delete data['_tag_input']
// 执行创建请求
const res = await createFunction(data)
if (!res.data?.id) {
if (!res.data?.insertedId) {
this.$notify({
type: 'error',
title: '操作失败',
Expand Down
10 changes: 5 additions & 5 deletions packages/system-client/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API_SYS]: {
target: 'http://localhost:8080/',
changeOrigin: true
// pathRewrite: {
// ['^' + process.env.VUE_APP_BASE_API_SYS]: ''
// }
target: 'http://localhost:9000/',
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API_SYS]: ''
}
},
[process.env.VUE_APP_BASE_API_APP]: {
target: 'http://localhost:8080/',
Expand Down
Loading

0 comments on commit 2c54c05

Please sign in to comment.