修改参数多值顺序问题
This commit is contained in:
@@ -8,59 +8,60 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { kkFileView } from '@/utils/kkfileView'
|
||||
import { kkFileView } from '@/utils/kkfileView'
|
||||
import { Dialog } from 'vant'
|
||||
|
||||
export default {
|
||||
name: 'phoneProblemKnowledgeBaseFile',
|
||||
data() {
|
||||
return {
|
||||
url: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
document.title = 'NIO GRP'
|
||||
// this.url = 'http://localhost:3000/phoneHome'
|
||||
this.url = kkFileView(this.$route.query.fileName,this.$route.query.fileId)
|
||||
},
|
||||
methods: {
|
||||
loadFrame() {
|
||||
const iframe = document.getElementById("iframeEle");
|
||||
const body = iframe.contentWindow.document;
|
||||
const head = body.getElementsByTagName('head')
|
||||
const cssLink = document.createElement("link");
|
||||
cssLink.href = "/iframe.css";
|
||||
cssLink.rel = "stylesheet";
|
||||
cssLink.type = "text/css";
|
||||
head[0].appendChild(cssLink);
|
||||
},
|
||||
export default {
|
||||
name: 'phoneProblemKnowledgeBaseFile',
|
||||
data() {
|
||||
return {
|
||||
url: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
document.title = 'NIO GRP'
|
||||
// this.url = 'http://localhost:3000/phoneHome'
|
||||
this.url = kkFileView(this.$route.query.fileName, this.$route.query.fileId)
|
||||
},
|
||||
methods: {
|
||||
loadFrame() {
|
||||
const iframe = document.getElementById('iframeEle')
|
||||
const body = iframe.contentWindow.document
|
||||
const head = body.getElementsByTagName('head')
|
||||
const cssLink = document.createElement('link')
|
||||
cssLink.href = '/iframe.css'
|
||||
cssLink.rel = 'stylesheet'
|
||||
cssLink.type = 'text/css'
|
||||
head[0].appendChild(cssLink)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
html {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
html {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: scroll;
|
||||
}
|
||||
body {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.box {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#iframeEle {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
#iframeEle {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user