@ -78,3 +78,13 @@ npm run dev
打包好后,将其打包好的文件放到Spring boot的static文件夹中。
运行Spring boot项目即可。
---
开发:
展示数据格式:
{ id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', age: 28, address: 'test abc' },
这是单个数据的格式
@ -2,7 +2,7 @@ import axios from "axios";
const service = axios.create({
// baseURL: import.meta.env.VITE_APP_URL,
baseURL: 'http://localhost/',
baseURL: 'http://localhost:8089/',
timeout: 6000,
headers: { 'X-Custom-Header': 'foobar' }
})
@ -22,6 +22,12 @@
import { defineComponent, ref } from 'vue'
export default defineComponent({
data() {
return {
ss: '',
sss: ''
}
},
setup () {
const tableData3 = ref([