diff --git a/assets/js/index.js b/assets/js/index.js index cc45c87..75d8d56 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -390,8 +390,8 @@ function loadFileList(pathname) { cache: false, success: function (res) { res.files = _.sortBy(res.files, function (f) { - var weight = f.type == 'dir' ? 1000 : 1; - return -weight * f.mtime; + var weight = f.type == 'dir' ? 'A' : 'a'; // 排序依据 文件名前缀 + return weight + f.name.toUpperCase(); // 依据文件名 }) vm.files = res.files; vm.auth = res.auth; diff --git a/docker/Dockerfile b/docker/Dockerfile index f0ee4bb..cbe108e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,7 @@ FROM golang:1.16 WORKDIR /app/gohttpserver ADD . /app/gohttpserver +RUN go env -w GOPROXY=https://goproxy.cn RUN CGO_ENABLED=0 GOOS=linux go build -ldflags '-X main.VERSION=docker' -o gohttpserver FROM debian:stretch