Element vite 按需引入的 模板代码

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'; // 新增的导入语句
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(),
        // ...
        AutoImport({
          resolvers: [ElementPlusResolver()],
        }),
        Components({
          resolvers: [ElementPlusResolver()],
        }),
  ],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
    },
  },
})

laravel 配置Api 开发工具包 —— dingo/api

第一步

安装 composer require dingo/api

第二步

发布配置 php artisan vendor:publish –provider=”Dingo\Api\Provider\LaravelServiceProvider”

配置信息

# dingou/api 配置

API_STANDARDS_TREE=x

API_SUBTYPE=xzjz

API_PREFIX=api

API_VERSION=v1

API_NAME=MyAPI

API_CONDITIONAL_REQUEST=false

API_STRICT=false

API_DEFAULT_FORMAT=json

API_DEBUG=true