更新服务器配置

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) => { export const handle_update = (params) => {
return request({ return request({
url: '/update/update_cine/', url: '/update/update_cine/',

@ -1,8 +1,10 @@
export default { export default {
// method: 'get', // 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', // 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', // baseWS: 'ws://127.0.0.1:8000',
headers: { headers: {
'Content-Type': 'application/json;charset=UTF-8', 'Content-Type': 'application/json;charset=UTF-8',

@ -1,7 +1,7 @@
<script setup> <script setup>
import {onBeforeMount, onMounted, reactive, ref, unref, computed} from 'vue'; import {onBeforeMount, onMounted, reactive, ref, unref, computed} from 'vue';
import {useStore, mapGetters, mapState} from "vuex"; 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"; import CinemaUpdate from "@/components/update/CinemaUpdate.vue";
// vuex // vuex
@ -76,6 +76,7 @@ const refresh = (formEL) => {
refresh_disable.value = true; refresh_disable.value = true;
refresh_loading.value = true; refresh_loading.value = true;
get_table_data() get_table_data()
update_git_version()
setTimeout(() => { setTimeout(() => {
refresh_disable.value = false; refresh_disable.value = false;
refresh_loading.value = false; refresh_loading.value = false;
@ -83,6 +84,17 @@ const refresh = (formEL) => {
} }
// endregion // 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 // region
// //
@ -222,7 +234,7 @@ const changeDialogStatus = (ip, ver) => {
<style scoped> <style scoped>
:deep(td.remote div){ :deep(td.remote div) {
font-family: "YaHei Consolas Hybrid"; font-family: "YaHei Consolas Hybrid";
} }
</style> </style>

Loading…
Cancel
Save