Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zxkws committed Oct 21, 2024
1 parent 2e5766e commit ee237fa
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/v-app/src/http/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const BASEURL =
process.env.NODE_ENV === "development"
? "https://api.zxkws.nyc.mn/api"
? "https://3000-zxkws-monorepoadmin-qgp9qaiie1l.ws-us116.gitpod.io/api"
: "https://api.zxkws.nyc.mn/api";

export default (url, params) => {
Expand Down
13 changes: 3 additions & 10 deletions packages/v-app/src/views/Todo/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,15 @@ import { deleteTodo, modifyTodo, queryTodos } from "../../http";
const todoParams = ref("");
const todos = ref([
{
id: 1,
description: "学习",
},
]);
const todos = ref([]);
onMounted(() => {
queryTodo();
});
const queryTodo = () => {
queryTodos({}).then((res) => {
if (res && res.data && res.data.todos) {
todos.value = res.data.todos;
}
todos.value = res;
});
};
Expand All @@ -44,7 +37,7 @@ const deleteItem = (id) => {
<ul>
<li v-for="todo in todos" :key="todo.id">
{{ todo.description }}
<button class="border" @click="() => deleteItem(todo.id)">delete</button>
<button class="border" @click="() => deleteItem(todo._id)">delete</button>
</li>
</ul>
<div>
Expand Down
1 change: 1 addition & 0 deletions sub-app/v3/assets/index-BKiV2Wj0.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sub-app/v3/assets/index-BNavNZ15.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sub-app/v3/assets/index-Cdaf2X2E.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sub-app/v3/assets/main-IRghiR6m.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import{m as n,k as t}from"./main-m7TGwe4x.js";export{n as mount,t as unmount};
26 changes: 26 additions & 0 deletions sub-app/v3/assets/main-m7TGwe4x.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sub-app/v3/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>zxkws</title><link rel="stylesheet" href="./regular.css"/><link rel="stylesheet" href="/sub-app/v3/assets/main-B9L9h7LI.css"></head><body><div id="app"></div><script type="module" src="/sub-app/v3/assets/main-B1AVQ9Vk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>zxkws</title><link rel="stylesheet" href="./regular.css"/><link rel="stylesheet" href="/sub-app/v3/assets/main-B9L9h7LI.css"></head><body><div id="app"></div><script type="module" src="/sub-app/v3/assets/main-IRghiR6m.js"></script></body></html>

0 comments on commit ee237fa

Please sign in to comment.