更新服务器配置

main
RogerWork 6 months ago
parent 5dbdc6fe3f
commit f5f57d7a9e
  1. 7
      src/apis/update.js
  2. 6
      src/request/config.js
  3. 16
      src/views/update/index.vue

@ -68,6 +68,13 @@ export const get_update_alter = () => {
})
}
export const write_git_version_to_db = () => {
return request({
url: `/update/test/write_git_version_to_db/`,
method: 'get',
})
}
export const handle_update = (params) => {
return request({
url: '/update/update_cine/',

@ -1,8 +1,10 @@
export default {
// method: 'get',
baseURL: 'http://172.16.1.63:8000',
baseURL: 'http://172.16.1.221:8000',
// baseURL: 'http://172.16.1.114:8000',
// baseURL: 'http://127.0.0.1:8000',
baseWS: 'ws://172.16.1.63:8000',
baseWS: 'ws://172.16.1.221:8000',
// baseWS: 'ws://172.16.1.114:8000',
// baseWS: 'ws://127.0.0.1:8000',
headers: {
'Content-Type': 'application/json;charset=UTF-8',

@ -1,7 +1,7 @@
<script setup>
import {onBeforeMount, onMounted, reactive, ref, unref, computed} from 'vue';
import {useStore, mapGetters, mapState} from "vuex";
import {cinema_list, cinema_search, cinema_user, change_cinema_user} from "@/apis/update.js";
import {cinema_list, cinema_search, cinema_user, change_cinema_user, write_git_version_to_db} from "@/apis/update.js";
import CinemaUpdate from "@/components/update/CinemaUpdate.vue";
// vuex
@ -76,6 +76,7 @@ const refresh = (formEL) => {
refresh_disable.value = true;
refresh_loading.value = true;
get_table_data()
update_git_version()
setTimeout(() => {
refresh_disable.value = false;
refresh_loading.value = false;
@ -83,6 +84,17 @@ const refresh = (formEL) => {
}
// endregion
// region
const update_git_version = async () => {
await write_git_version_to_db().then(res => {
console.log(res)
}).catch(err => {
console.log(err)
}
)
}
// endregion
// region
//
@ -222,7 +234,7 @@ const changeDialogStatus = (ip, ver) => {
<style scoped>
:deep(td.remote div){
:deep(td.remote div) {
font-family: "YaHei Consolas Hybrid";
}
</style>

Loading…
Cancel
Save