Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-10-25 17:41:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
89fd398f962daa711535b8ed555eaa857bcccbfd
89fd398f
1 parent
b5f719ca
搜索页面接口联调
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
src/api/hager.js
src/components/common/hagerHeader.vue
src/views/search.vue
src/api/hager.js
View file @
89fd398
/*
* @Date: 2024-09-26 13:36:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-25 1
4:01:25
* @LastEditTime: 2024-10-25 1
6:49:54
* @FilePath: /hager/src/api/hager.js
* @Description: 文件描述
*/
...
...
@@ -23,6 +23,7 @@ const Api = {
EDIT_USER
:
'/srv/?a=user&type=edit_user'
,
GET_CODE
:
'/srv/?a=user&type=get_code'
,
EDIT_PASSWORD
:
'/srv/?a=user&type=edit_password'
,
SEARCH
:
'/srv/?a=search'
,
};
export
const
honorAPI
=
(
params
)
=>
fn
(
fetch
.
get
(
Api
.
HONOR
,
params
));
...
...
@@ -49,3 +50,4 @@ export const getUserInfoAPI = (params) => fn(fetch.get(Api.GET_USER, params));
export
const
editUserInfoAPI
=
(
params
)
=>
fn
(
fetch
.
post
(
Api
.
EDIT_USER
,
params
));
export
const
getCodeAPI
=
(
params
)
=>
fn
(
fetch
.
post
(
Api
.
GET_CODE
,
params
));
export
const
editPasswordAPI
=
(
params
)
=>
fn
(
fetch
.
post
(
Api
.
EDIT_PASSWORD
,
params
));
export
const
searchAPI
=
(
params
)
=>
fn
(
fetch
.
get
(
Api
.
SEARCH
,
params
));
...
...
src/components/common/hagerHeader.vue
View file @
89fd398
<!--
* @Date: 2024-09-26 13:42:11
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-25 1
4:21:41
* @LastEditTime: 2024-10-25 1
6:57:33
* @FilePath: /hager/src/components/common/hagerHeader.vue
* @Description: 文件描述
-->
...
...
@@ -367,7 +367,9 @@ export default {
$('body').css('overflow', 'auto');
},
goToSearch () {
if (this.keyword) {
this.updateURL()
}
},
updateURL() {
const currentKeyword = this.$route.query.keyword;
...
...
src/views/search.vue
View file @
89fd398
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment