首页顶部导航
This commit is contained in:
@@ -86,6 +86,8 @@ const $post = (url, params) => {
|
||||
}
|
||||
//下面是vue3必须加的,vue2不需要,只需要暴露出去get,post方法就可以
|
||||
export default {
|
||||
get:$get,
|
||||
post:$post,
|
||||
install: (app) => {
|
||||
app.config.globalProperties['$get'] = $get;
|
||||
app.config.globalProperties['$post'] = $post;
|
||||
|
||||
Reference in New Issue
Block a user