mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
修改配置文件
This commit is contained in:
@@ -10,7 +10,7 @@ VUE_APP_BASE_API = '/systemapi'
|
|||||||
VUE_APP_BOE_BASE_API = '/uboeApi'
|
VUE_APP_BOE_BASE_API = '/uboeApi'
|
||||||
|
|
||||||
# 资源位的api
|
# 资源位的api
|
||||||
VUE_APP_CESOURCE_BASE_API = '/subgroupApi'
|
VUE_APP_CESOURCE_BASE_API = '/socialApi'
|
||||||
|
|
||||||
# 事件的api
|
# 事件的api
|
||||||
VUE_APP_STAT_BASE_API = '/statApi'
|
VUE_APP_STAT_BASE_API = '/statApi'
|
||||||
|
|||||||
@@ -336,6 +336,21 @@ export default {
|
|||||||
if(this.unicom) {
|
if(this.unicom) {
|
||||||
this.$store.dispatch("unicomPraises",false)
|
this.$store.dispatch("unicomPraises",false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let event = {
|
||||||
|
key: "cancelPraise",//
|
||||||
|
title: "取消点赞",//事件的标题
|
||||||
|
parameters:"author:"+this.data.sysCreateAid,//用户自定义参数 name:value,name:value
|
||||||
|
content: "取消点赞"+this.data.title,//事件的内容
|
||||||
|
objId: this.data.id,//关联的id
|
||||||
|
objType: this.type,//关联的类型
|
||||||
|
objInfo: this.data.title,
|
||||||
|
aid: this.userInfo.aid, //当前登录人的id
|
||||||
|
aname: this.userInfo.name,//当前人的姓名
|
||||||
|
status: 1 //状态,直接写1
|
||||||
|
}
|
||||||
|
this.$store.dispatch("userTrigger", event);
|
||||||
|
|
||||||
this.$message({message:'取消点赞',type:'success'})
|
this.$message({message:'取消点赞',type:'success'})
|
||||||
}else{
|
}else{
|
||||||
console.log('取消失败:'+res.message);
|
console.log('取消失败:'+res.message);
|
||||||
@@ -362,7 +377,7 @@ export default {
|
|||||||
let event = {
|
let event = {
|
||||||
key: "Praise",//后台的事件key 发布文章且审核通过
|
key: "Praise",//后台的事件key 发布文章且审核通过
|
||||||
title: "点赞",//事件的标题
|
title: "点赞",//事件的标题
|
||||||
parameters:"",//用户自定义参数 name:value,name:value
|
parameters:"author:"+this.data.sysCreateAid,//用户自定义参数 name:value,name:value
|
||||||
content: "点赞"+this.data.title,//事件的内容
|
content: "点赞"+this.data.title,//事件的内容
|
||||||
objId: this.data.id,//关联的id
|
objId: this.data.id,//关联的id
|
||||||
objType: this.type,//关联的类型
|
objType: this.type,//关联的类型
|
||||||
|
|||||||
@@ -141,14 +141,14 @@ module.exports = {
|
|||||||
'^/statApi': ''
|
'^/statApi': ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'/subgroupApi': {
|
'/socialApi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'http://192.168.0.11:9081',
|
target: 'http://192.168.0.11:9081',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
logLevel:'debug',
|
logLevel:'debug',
|
||||||
secure: false,
|
secure: false,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/subgroupApi': ''
|
'^/socialApi': ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user