Browse Source

chore: Remove commented out code for disinfection record management tab

master
sige 1 year ago
parent
commit
4173f4f445
  1. 20
      publish.ps1
  2. 4
      src/components/Setting/index.vue

20
publish.ps1

@ -0,0 +1,20 @@
# build project
yarn build
# rename dist to current time, like 20221215121300
$now = Get-Date -Format "yyyyMMddHHmmss"
Rename-Item -Path ./dist -NewName $now
# compress dist to app.zip
Compress-Archive -Path ./$now -DestinationPath ./app.zip -Force
# upload app.zip to server
scp app.zip root@192.168.8.10:/frontend/
# unzip app.zip
ssh root:zwsd@192.168.8.10 "cd /frontend && unzip app.zip"
# remove old link
ssh root:zwsd@192.168.8.10 "cd /frontend && rm -f dist"
# create link
ssh root:zwsd@192.168.8.10 "cd /frontend && ln -s /frontend/$now /frontend/dist"
# remove app.zip
ssh root:zwsd@192.168.8.10 "cd /frontend && rm -f app.zip"
Remove-Item -Path ./app.zip
# remove folder
Remove-Item -Path ./$now -Recurse

4
src/components/Setting/index.vue

@ -26,11 +26,11 @@
<p :class="activeTab == 5 ? 'title active' : 'title'">审计管理</p>
<div :class="activeTab == 5 ? 'btn style-btn' : 'dis_btn'">操作</div>
</div>
<div class="tab_wrap" @click="changeActiveTab(6)">
<!-- <div class="tab_wrap" @click="changeActiveTab(6)">
<p class="active_line" v-show="activeTab == 6"></p>
<p :class="activeTab == 6 ? 'title active' : 'title'">消毒记录管理</p>
<div :class="activeTab == 6 ? 'btn style-btn' : 'dis_btn'">操作</div>
</div>
</div> -->
<div class="tab_wrap" @click="changeActiveTab(7)">
<p class="active_line" v-show="activeTab == 7"></p>
<p :class="activeTab == 7 ? 'title active' : 'title'">历史记录</p>

Loading…
Cancel
Save