Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
shiguanghuxian committed Feb 19, 2019
2 parents 29a8e1a + 122c893 commit 40c0434
Show file tree
Hide file tree
Showing 3 changed files with 261 additions and 24 deletions.
1 change: 1 addition & 0 deletions program/http_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
// 处理静态文件
func (p *Program) handlerStatic(c *gin.Context) {
uri := strings.TrimLeft(c.Request.RequestURI, "/")
uri = strings.TrimRight(uri, "?")
if uri == "ui/" || uri == "ui" {
uri = "dist/index.html"
} else {
Expand Down
10 changes: 8 additions & 2 deletions static/src/views/Keys.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</Select>
</FormItem>
<FormItem class="search-in">
<Input v-model="searchVal" @on-keyup="onSearchLocal">
<Input v-model="searchVal" type="text" @on-keyup="onSearchLocal">
<Button slot="prepend" type="primary">{{$t('public.screen')}}</Button>
<Button slot="append" type="primary" icon="ios-search" @click="onSearchLocal"></Button>
</Input>
Expand Down Expand Up @@ -535,14 +535,20 @@ export default {
},
// 搜索本地
onSearchLocal(){
onSearchLocal(e){
if (e.keyCode == 13){
return
}
console.log(this.searchVal)
if (this.searchVal == ''){
this.pageShow = true;
}else{
this.pageShow = false;
}
let list = [];
if(typeof this.baseList == 'undefined'){
return
}
this.baseList.forEach(val => {
let fullDir = val.full_dir.substring(this.currentPath.length+1);
// console.log(fullDir)
Expand Down
Loading

0 comments on commit 40c0434

Please sign in to comment.