Browse Source

fix

main
cobb 4 years ago
parent
commit
9bf0503331
  1. 2
      Dockerfile
  2. 2
      src/components/HelloWorld.vue

2
Dockerfile

@ -21,7 +21,7 @@ WORKDIR /app
COPY go.mod . COPY go.mod .
COPY go.sum . COPY go.sum .
RUN go mod download RUN go mod download
COPY --from=builder /web/dist /dist
COPY --from=builder /web/dist /app/dist
COPY main.go main.go COPY main.go main.go
RUN go build -ldflags "-w -s" -o json-gen main.go RUN go build -ldflags "-w -s" -o json-gen main.go

2
src/components/HelloWorld.vue

@ -78,7 +78,7 @@ import axios from "axios";
// import "highlight.js/styles/atelier-plateau-light.css"; // import "highlight.js/styles/atelier-plateau-light.css";
const cli = axios.create({ const cli = axios.create({
baseURL: "http://127.0.0.1:9811/",
baseURL: "http://json.cobb.wang/",
timeout: 1000, timeout: 1000,
headers: { "content-type": "application/json" }, headers: { "content-type": "application/json" },
}); });

Loading…
Cancel
Save