mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
修改个人主页的url规则
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
/**页面设置的一些常量*/
|
||||
const constants={
|
||||
fileBaseUrl:'http://192.168.0.10/pc/cdn/upload',
|
||||
newLoginKey:'boe_new_login'
|
||||
}
|
||||
|
||||
export default constants
|
||||
20
src/utils/xpage.js
Normal file
20
src/utils/xpage.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/**页面设置的一些常量,方便,用于一个处理只写一处,不要多处写*/
|
||||
const constants={
|
||||
fileBaseUrl:'http://192.168.0.10/pc/cdn/upload',
|
||||
newLoginKey:'boe_new_login'
|
||||
}
|
||||
|
||||
/**返回个人主页的id参数*/
|
||||
const getHomeId=function(r){
|
||||
return r.params.id;
|
||||
}
|
||||
|
||||
const getHomePath=function(id){
|
||||
return '/home/'+id;
|
||||
}
|
||||
|
||||
export default {
|
||||
getHomeId,
|
||||
getHomePath,
|
||||
constants
|
||||
}
|
||||
Reference in New Issue
Block a user