|
@@ -113,7 +113,7 @@
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import {onLoad, onShow} from "@dcloudio/uni-app";
|
|
import {onLoad, onShow} from "@dcloudio/uni-app";
|
|
|
import {ref, computed, nextTick} from "vue";
|
|
import {ref, computed, nextTick} from "vue";
|
|
|
-import {body, get, del} from "@/utils/https";
|
|
|
|
|
|
|
+import {body, get} from "@/utils/https";
|
|
|
|
|
|
|
|
const plateChars = ref(['粤', '', '', '', '', '', '', '']);
|
|
const plateChars = ref(['粤', '', '', '', '', '', '', '']);
|
|
|
const restStr = ref('');
|
|
const restStr = ref('');
|
|
@@ -221,7 +221,7 @@ const handleDelete = (car) => {
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
uni.showLoading({ title: "删除中" });
|
|
uni.showLoading({ title: "删除中" });
|
|
|
- del(`/cars/delete/${car.id}`).then(() => {
|
|
|
|
|
|
|
+ body(`/cars/delete/${car.id}`).then(() => {
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
uni.showToast({ icon: "success", title: "已删除" });
|
|
uni.showToast({ icon: "success", title: "已删除" });
|
|
|
fetchCarList();
|
|
fetchCarList();
|