aiapi.js
1.7 KB
import request from '@/utils/request'
export const uploadFile = (data) => {
return request({
url: '/ai/upload',
method: 'post',
data
})
}
export const saveHtml = (data) => {
return request({
url: '/ai/saveHtml',
method: 'post',
data
})
}
export const saveDocx = (data) => {
return request({
url: '/ai/generateFile',
method: 'post',
data
})
}
export const uploadFileToDataset = (data) => {
return request({
url: '/ai/uploadFileToDataset',
method: 'post',
data
})
}
//<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>登录页面</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .login-container { background: white; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } h2 { margin-bottom: 20px; } input[type="text"], input[type="password"] { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 3px; } input[type="submit"] { background-color: #4CAF50; color: white; border: none; padding: 10px; cursor: pointer; border-radius: 3px; width: 100%; } input[type="submit"]:hover { background-color: #45a049; } </style> </head> <body> <div class="login-container"> <h2>用户登录</h2> <form action="/login" method="POST"> <label for="username">用户名:</label> <input type="text" id="username" name="username" required> <label for="password">密码:</label> <input type="password" id="password" name="password" required> <input type="submit" value="登录"> </form> </div> </body> </html>