HolyKnightIX 10 місяці тому
джерело
коміт
1d10986c4b
1 змінених файлів з 4 додано та 7 видалено
  1. +4
    -7
      example/page/index.vue

+ 4
- 7
example/page/index.vue Переглянути файл

@@ -1,6 +1,7 @@
<template> <template>
<div class="box"> <div class="box">
<div class="title">打印模板设计器 {{ currentID }}</div>
<div class="title">打印模板设计器</div>
<div class="title">ID:{{ currentID }}</div>
<section> <section>
<div class="section">模板管理</div> <div class="section">模板管理</div>
<el-table :data="tempList" style="width: 100%" size="mini" border> <el-table :data="tempList" style="width: 100%" size="mini" border>
@@ -152,6 +153,8 @@ export default {
Vue.use(TableColumn) Vue.use(TableColumn)
Vue.use(Dialog) Vue.use(Dialog)
this.tempList = JSON.parse(localStorage.getItem('tempList')) || [] this.tempList = JSON.parse(localStorage.getItem('tempList')) || []
const id = this.$route.query.id
if (id) this.currentID = id
}, },


methods: { methods: {
@@ -234,12 +237,6 @@ export default {
}) })
}, },
}, },
created() {
const id = this.$route.query.id
if (id) {
this.currentID = id
}
}
} }
</script> </script>
<style scoped> <style scoped>


Завантаження…
Відмінити
Зберегти