mirror of
https://github.com/KoriIku/luxirty-search
synced 2024-11-21 16:18:13 +00:00
加个配cx的地方
This commit is contained in:
parent
239fd11800
commit
5cffbd4990
@ -25,9 +25,8 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
const cx = 'd0753b9ad66c34097';
|
|
||||||
const script = document.createElement('script');
|
const script = document.createElement('script');
|
||||||
script.src = `https://cse.google.com/cse.js?cx=${cx}`;
|
script.src = `https://cse.google.com/cse.js?cx=${import.meta.env.VITE_GOOGLE_CSE_CX}`;
|
||||||
script.async = true;
|
script.async = true;
|
||||||
document.body.appendChild(script);
|
document.body.appendChild(script);
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
<p>
|
||||||
© Create by <a href="https://github.com/KoriIku">Luxirty</a> with love |
|
© Create by <a href="https://github.com/KoriIku">Luxirty</a> with ♥ |
|
||||||
<a href="https://github.com/KoriIku/luxiry-search" target="_blank">
|
<a href="https://github.com/KoriIku/luxiry-search" target="_blank">
|
||||||
GitHub
|
GitHub
|
||||||
</a>
|
</a>
|
||||||
@ -27,7 +27,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
loadGoogleCSE() {
|
loadGoogleCSE() {
|
||||||
const script = document.createElement('script');
|
const script = document.createElement('script');
|
||||||
script.src = "https://cse.google.com/cse.js?cx=d0753b9ad66c34097";
|
script.src = `https://cse.google.com/cse.js?cx=${import.meta.env.VITE_GOOGLE_CSE_CX}`;
|
||||||
script.async = true;
|
script.async = true;
|
||||||
document.head.appendChild(script);
|
document.head.appendChild(script);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user