remove bom
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!doctype html>
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"name": "toyshop-frontend",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<template>
|
||||
<template>
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import axios from 'axios'
|
||||
import axios from 'axios'
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: 'http://localhost:8080',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-layout style="min-height: 100vh">
|
||||
<a-layout-sider collapsible>
|
||||
<div class="logo">后台管理</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-layout>
|
||||
<a-layout-header class="header">
|
||||
<div class="logo">童飞玩具购物网站</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createApp } from 'vue'
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import Antd from 'ant-design-vue'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="轮播图管理">
|
||||
<a-form layout="inline">
|
||||
<a-form-item label="图片URL"><a-input v-model:value="form.imageUrl" /></a-form-item>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="分类管理">
|
||||
<a-form layout="inline">
|
||||
<a-form-item label="名称"><a-input v-model:value="form.name" /></a-form-item>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="管理员登录" style="max-width: 360px; margin: 80px auto;">
|
||||
<a-form layout="vertical">
|
||||
<a-form-item label="用户名"><a-input v-model:value="form.username" /></a-form-item>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="公告管理">
|
||||
<a-form layout="inline">
|
||||
<a-form-item label="标题"><a-input v-model:value="form.title" /></a-form-item>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="订单管理">
|
||||
<a-table :dataSource="orders" :columns="columns" rowKey="id">
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="商品管理">
|
||||
<a-form layout="inline">
|
||||
<a-form-item label="名称"><a-input v-model:value="form.name" /></a-form-item>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="用户管理">
|
||||
<a-table :dataSource="users" :columns="columns" rowKey="id">
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="购物车">
|
||||
<a-table :dataSource="items" :columns="columns" rowKey="id">
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="订单确认">
|
||||
<a-list :data-source="addresses">
|
||||
<template #renderItem="{ item }">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-spin :spinning="loading">
|
||||
<a-card title="轮播与公告">
|
||||
<a-carousel autoplay>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="用户登录" style="max-width: 360px; margin: 0 auto;">
|
||||
<a-form layout="vertical">
|
||||
<a-form-item label="用户名"><a-input v-model:value="form.username" /></a-form-item>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="我的订单">
|
||||
<a-table :dataSource="orders" :columns="columns" rowKey="id">
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-spin :spinning="loading">
|
||||
<a-card>
|
||||
<a-row :gutter="16">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card>
|
||||
<a-space>
|
||||
<a-input v-model:value="keyword" placeholder="搜索商品" style="width: 200px" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="个人中心">
|
||||
<a-form layout="vertical">
|
||||
<a-form-item label="手机号"><a-input v-model:value="profile.phone" /></a-form-item>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<a-card title="用户注册" style="max-width: 360px; margin: 0 auto;">
|
||||
<a-form layout="vertical">
|
||||
<a-form-item label="用户名"><a-input v-model:value="form.username" /></a-form-item>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import MainLayout from '../layouts/MainLayout.vue'
|
||||
import AdminLayout from '../layouts/AdminLayout.vue'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
export default defineConfig({
|
||||
|
||||
Reference in New Issue
Block a user