+
+
+ 更新记录
+ {# #}
+ {# #}
+ {# #}
+
+
+
+
+
+
+
+
+
+
+
+
@@ -68,10 +91,12 @@
{# :size="activity.size" #}
:timestamp="update_note.date">
-
+
+ 版本编号:
+
+
-
@@ -92,7 +117,10 @@
{# :size="activity.size" #}
:timestamp="update_note.date">
-
+
+
版本编号:
+
+
@@ -119,12 +147,13 @@
data: {
update_notes: {{ update_notes | safe }},
local_logs: {{ local_logs | safe }},
- {#local_log: [],#}
+ update_log: {},
restart: true,
update: {{ update }},
local_log_width: 24,
cid: "{{ cid }}",
- time: ''
+ time: '',
+ show: false,
},
created() {
if (this.update) {
@@ -201,13 +230,15 @@
if (res.data.code === 0) {
console.log(res, 1)
this.update_log = res.data.data.result
+ this.show = true
{#console.log('规则更新记录', res.data.data.xpath_update)#}
this.$message({
type: 'success',
message: res.data.msg
});
- this.time = 15
- setTimeout(this.timeDown, 1000)
+ setTimeout(() => {
+ window.location.reload()
+ }, 15000)
} else {
console.log(res, 2)
this.$message({
diff --git a/update.sh b/update.sh
deleted file mode 100755
index 8a649f4..0000000
--- a/update.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-# 先备份数据库文件再拉取更新 $(date "+%Y%m%d%H%M%S")当前时间年月日时分秒
-cp /ptools/db/db.sqlite3 /ptools/db/db.sqlite3-$(date "+%Y%m%d%H%M%S")
-git pull
-pip install -r requirements.txt
-python manage.py makemigrations
-python manage.py migrate